more string shit

This commit is contained in:
Tenari
2026-05-24 20:53:11 -05:00
parent 02a44bcfe3
commit 314f30d632
2 changed files with 22 additions and 3 deletions
+3 -1
View File
@@ -675,9 +675,11 @@ fn bool codepointIsWhitespace(Codepoint c);
fn Codepoint codepointFromBytes(ptr bytes, u32 offset);
fn Codepoint codepointFromBytesBefore(ptr bytes, u32 offset);
fn Codepoint codepointFromRawInt(u32 c);
fn void codepointFillBuf(Codepoint cp, ptr buf);
fn String stringFromRawCodepoint(Arena* a, u32 c);
fn bool stringInsertCodepointAtByte(String* s, Codepoint c, u32 byte_offset);
fn bool stringDeleteCodepointAtByte(String* s, u32 byte_offset);
fn u8 stringDeleteCodepointAtByte(String* s, u32 byte_offset);
fn bool stringDeleteCodepointsBetweenByteOffsetsInclusive(String* s, u32 start, u32 end);
///// OS-wrapped apis
void osInit();