Initial project import

This commit is contained in:
Agila Forge Importer committed 2026-07-13 15:20:32 +00:00
commit 23f2d29e32
11957 files changed
+1754577

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
module builtin
pub fn utf8_str_visible_length(s string) int {
// todo: proper implementation
res := 0
#res.val = s.str.length;
return res
}
pub fn utf8_str_len(s string) int {
return s.len
}
pub fn utf8_char_len(b u8) int {
return ((0xe5000000 >> ((b >> 3) & 0x1e)) & 3) + 1
}