From 0be6ddc7e2149a1f6b8fbc08ecf2674926c11785 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 20 Oct 2020 12:25:11 +0100 Subject: Add `-microarch:` (e.g. `-microarch:native`) --- src/string.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/string.cpp') 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; -- cgit v1.2.3