diff options
| author | gingerBill <bill@gingerbill.org> | 2021-08-01 23:56:17 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-08-01 23:56:17 +0100 |
| commit | be76da2c90824f3671328957e8d513bba605c086 (patch) | |
| tree | 1b16bc4b4836c094c55356c4efc23aef84a43c77 /src/main.cpp | |
| parent | b1a8357f509d0dfa2d496746831dfb1008ab94a7 (diff) | |
Begin optimizing tokenizer; Replace `gb_utf8_decode` with `utf8_decode` (CC but easier to change later)
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 27d69d428..3b3cb49d3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -561,7 +561,7 @@ bool string_is_valid_identifier(String str) { isize offset = 0; while (offset < str.len) { Rune r = 0; - w = gb_utf8_decode(str.text, str.len, &r); + w = utf8_decode(str.text, str.len, &r); if (r == GB_RUNE_INVALID) { return false; } |