another helper for strings

This commit is contained in:
Tenari
2026-06-06 11:35:30 -05:00
parent 22dec9e742
commit 9c6c72f964
2 changed files with 28 additions and 2 deletions
+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();