diff options
| author | gingerBill <bill@gingerbill.org> | 2020-05-24 17:50:27 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-05-24 17:50:27 +0100 |
| commit | f06efffe22136e204d85596da74bcb8c398a312d (patch) | |
| tree | e74cd8dc27fe545f2d30666d6c287ed21af7926d /core/unicode | |
| parent | e42f7008fc66ec0eebfcf810c55152a588afb1e2 (diff) | |
Update strings case convertors to be unicode compliant
Diffstat (limited to 'core/unicode')
| -rw-r--r-- | core/unicode/letter.odin | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/unicode/letter.odin b/core/unicode/letter.odin index 09e6fb0ac..bd701ab85 100644 --- a/core/unicode/letter.odin +++ b/core/unicode/letter.odin @@ -105,7 +105,8 @@ is_title :: proc(r: rune) -> bool { return is_upper(r) && is_lower(r); } -is_white_space :: proc(r: rune) -> bool { +is_white_space :: is_space; +is_space :: proc(r: rune) -> bool { c := i32(r); p := binary_search(c, space_ranges[:], len(space_ranges)/2, 2); if p >= 0 && space_ranges[p] <= c && c <= space_ranges[p+1] { |