Merge remote-tracking branch 'offical/master'

This commit is contained in:
2025-02-13 15:43:19 -05:00
199 changed files with 93927 additions and 1117 deletions
+9 -6
View File
@@ -1031,14 +1031,17 @@ Returns:
*/
@private
_split_iterator :: proc(s: ^string, sep: string, sep_save: int) -> (res: string, ok: bool) {
m: int
if sep == "" {
res = s[:]
ok = true
s^ = s[len(s):]
return
if len(s) == 0 {
m = -1
} else {
_, w := utf8.decode_rune_in_string(s^)
m = w
}
} else {
m = index(s^, sep)
}
m := index(s^, sep)
if m < 0 {
// not found
res = s[:]