aboutsummaryrefslogtreecommitdiff
path: root/src/unicode.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-11-23 10:36:48 +0000
committerGinger Bill <bill@gingerbill.org>2016-11-23 10:36:48 +0000
commit8ecfca0c9b4d8a8f7c553f99b0bf10142eea88e6 (patch)
treed04d929f7cd07cddf064704b7171ad3524f092a7 /src/unicode.cpp
parentcb7b9a413d66b1dce30a4d810f17ed8453c0a738 (diff)
Remove templated Map; replace with #include macro "templates" trick
Diffstat (limited to 'src/unicode.cpp')
-rw-r--r--src/unicode.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/unicode.cpp b/src/unicode.cpp
index 872881414..5c9f91f46 100644
--- a/src/unicode.cpp
+++ b/src/unicode.cpp
@@ -6,7 +6,7 @@
#pragma warning(pop)
-b32 rune_is_letter(Rune r) {
+bool rune_is_letter(Rune r) {
if ((r < 0x80 && gb_char_is_alpha(cast(char)r)) ||
r == '_') {
return true;
@@ -22,14 +22,14 @@ b32 rune_is_letter(Rune r) {
return false;
}
-b32 rune_is_digit(Rune r) {
+bool rune_is_digit(Rune r) {
if (r < 0x80 && gb_is_between(r, '0', '9')) {
return true;
}
return utf8proc_category(r) == UTF8PROC_CATEGORY_ND;
}
-b32 rune_is_whitespace(Rune r) {
+bool rune_is_whitespace(Rune r) {
switch (r) {
case ' ':
case '\t':
@@ -41,13 +41,13 @@ b32 rune_is_whitespace(Rune r) {
}
-b32 is_string_an_identifier(String s) {
+bool is_string_an_identifier(String s) {
if (s.len < 1) {
return false;
}
isize offset = 0;
while (offset < s.len) {
- b32 ok = false;
+ bool ok = false;
Rune r = -1;
isize size = gb_utf8_decode(s.text+offset, s.len-offset, &r);
if (offset == 0) {