FFstrbuf: add function ffStrbufAppendUtf32CodePoint

This commit is contained in:
Carter Li
2025-07-29 16:36:21 +08:00
parent 5bb6e22679
commit 77dd18466b
3 changed files with 43 additions and 0 deletions
+9
View File
@@ -711,6 +711,15 @@ int main(void)
ffStrbufDestroy(&strbuf);
}
{
ffStrbufAppendUtf32CodePoint(&strbuf, 0x6587);
ffStrbufAppendUtf32CodePoint(&strbuf, 0x6cc9);
ffStrbufAppendUtf32CodePoint(&strbuf, 0x9a7f);
VERIFY(ffStrbufEqualS(&strbuf, u8"文泉驿"));
ffStrbufDestroy(&strbuf);
}
//Success
puts("\e[32mAll tests passed!" FASTFETCH_TEXT_MODIFIER_RESET);
}