diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-10-07 14:27:19 +0100 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2025-10-07 14:27:19 +0100 |
| commit | 20e67f2ad9a5aaf4b3d01e3e717b70785357979f (patch) | |
| tree | e3cc43006bfa8034e9fef4413c76e872f5f37f39 /core/strings/strings.odin | |
| parent | 1400952530a24f5c2926de7a7ac414bd4a947e7a (diff) | |
Add some more docs
Diffstat (limited to 'core/strings/strings.odin')
| -rw-r--r-- | core/strings/strings.odin | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/core/strings/strings.odin b/core/strings/strings.odin index ffa11f219..79a8cec29 100644 --- a/core/strings/strings.odin +++ b/core/strings/strings.odin @@ -436,8 +436,13 @@ equal_fold :: proc(u, v: string) -> (res: bool) { return false } - // TODO(bill): Unicode folding - + r := unicode.simple_fold(sr) + for r != sr && r < tr { + r = unicode.simple_fold(sr) + } + if r == tr { + continue loop + } return false } |