diff options
| author | gingerBill <ginger.bill.22@gmail.com> | 2016-08-15 14:54:45 +0100 |
|---|---|---|
| committer | gingerBill <ginger.bill.22@gmail.com> | 2016-08-15 15:02:45 +0100 |
| commit | dcbb2fcfbdbd3b35ddc44a4c542b7c6375e47214 (patch) | |
| tree | 1670d1ea683c78be063649685c601a17c1dcb025 /src/string.cpp | |
| parent | 3ed75b22a357292393618fc684b18a1d167f4eb7 (diff) | |
Full Unicode Support
Diffstat (limited to 'src/string.cpp')
| -rw-r--r-- | src/string.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/string.cpp b/src/string.cpp index d46700630..1581feab9 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -25,12 +25,7 @@ gb_inline String make_string(char *text) { gb_inline b32 are_strings_equal(String a, String b) { if (a.len == b.len) { - for (isize i = 0; i < a.len; i++) { - if (a.text[i] != b.text[i]) { - return false; - } - } - return true; + return gb_memcompare(a.text, b.text, a.len) == 0; } return false; } |