aboutsummaryrefslogtreecommitdiff
path: root/src/unicode.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-10-22 19:41:58 +0100
committerGinger Bill <bill@gingerbill.org>2016-10-22 19:41:58 +0100
commitf60dc7b0a7f8bf8122df0fa3b4d12603a9775f87 (patch)
treeadd8d1125cf0bf5c40f0c6d39579705b2cb1bc98 /src/unicode.cpp
parenta675d3f94d2c10ce6e50b88c6c39b36c746a4d2a (diff)
Minor Style Fixes
Diffstat (limited to 'src/unicode.cpp')
-rw-r--r--src/unicode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unicode.cpp b/src/unicode.cpp
index a9781d8f7..872881414 100644
--- a/src/unicode.cpp
+++ b/src/unicode.cpp
@@ -6,7 +6,6 @@
#pragma warning(pop)
-// TODO(bill): Unicode support
b32 rune_is_letter(Rune r) {
if ((r < 0x80 && gb_char_is_alpha(cast(char)r)) ||
r == '_') {
@@ -24,8 +23,9 @@ b32 rune_is_letter(Rune r) {
}
b32 rune_is_digit(Rune r) {
- if (r < 0x80 && gb_is_between(r, '0', '9'))
+ if (r < 0x80 && gb_is_between(r, '0', '9')) {
return true;
+ }
return utf8proc_category(r) == UTF8PROC_CATEGORY_ND;
}