Build panel and reworking Open paths, not compiling

This commit is contained in:
krzosa
2025-12-24 11:19:23 +01:00
parent ceb6747fcd
commit b98d14f9dd
10 changed files with 94 additions and 23 deletions
+7
View File
@@ -84,6 +84,13 @@ API String GetPrefix(String a, int64_t len) {
return result;
}
API char At(String a, int64_t idx) {
if (idx < a.len) {
return a.data[idx];
}
return 0;
}
API String GetSlice(String arr, int64_t first_index, int64_t one_past_last_index) {
// Negative indexes work in python style, they return you the index counting from end of list
if (one_past_last_index == SLICE_LAST) one_past_last_index = arr.len;