aboutsummaryrefslogtreecommitdiff
path: root/core/bytes/bytes.odin
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-10-07 14:27:19 +0100
committergingerBill <gingerBill@users.noreply.github.com>2025-10-07 14:27:19 +0100
commit20e67f2ad9a5aaf4b3d01e3e717b70785357979f (patch)
treee3cc43006bfa8034e9fef4413c76e872f5f37f39 /core/bytes/bytes.odin
parent1400952530a24f5c2926de7a7ac414bd4a947e7a (diff)
Add some more docs
Diffstat (limited to 'core/bytes/bytes.odin')
-rw-r--r--core/bytes/bytes.odin9
1 files changed, 7 insertions, 2 deletions
diff --git a/core/bytes/bytes.odin b/core/bytes/bytes.odin
index 71b6ef70c..6e872e757 100644
--- a/core/bytes/bytes.odin
+++ b/core/bytes/bytes.odin
@@ -134,8 +134,13 @@ equal_fold :: proc(u, v: []byte) -> 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
}