diff options
| author | gingerBill <bill@gingerbill.org> | 2020-10-20 12:25:11 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-10-20 12:25:11 +0100 |
| commit | 0be6ddc7e2149a1f6b8fbc08ecf2674926c11785 (patch) | |
| tree | ad23bdf871991e4272b60f6dba387f3c34d8ec33 /src/string.cpp | |
| parent | b1bdd95f19f5e472200954dd7c312a3fd48ae84d (diff) | |
Add `-microarch:<string>` (e.g. `-microarch:native`)
Diffstat (limited to 'src/string.cpp')
| -rw-r--r-- | src/string.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/string.cpp b/src/string.cpp index fcf271d67..6a0192507 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -125,6 +125,12 @@ gb_inline bool str_eq_ignore_case(String const &a, String const &b) { return false; } +void string_to_lower(String *s) { + for (isize i = 0; i < s->len; i++) { + s->text[i] = gb_char_to_lower(s->text[i]); + } +} + int string_compare(String const &x, String const &y) { if (x.len != y.len || x.text != y.text) { isize n, fast, offset, curr_block; |