another helper for strings

This commit is contained in:
Tenari committed 2026-06-06 11:35:30 -05:00
1 parent 22dec9e742
commit 9c6c72f964
2 files changed
+28 -2

No files matched your search

+2
View File
@@ -684,6 +684,8 @@ fn u32 stringCountLines(String s);
fn u32 stringLineLen(String s, u32 line_number);
fn u32 stringLineStartByteOffset(String s, u32 line_number);
fn bool stringInsertBytesAt(String* s, str bytes, u32 at);
fn bool stringInsertBytesAtMaybeAlloc(Arena* a, String* s, str bytes, u32 at);
fn u32 stringFindNextCharPosFrom(String s, u32 from, u8 c);
///// OS-wrapped apis
void osInit();