aboutsummaryrefslogtreecommitdiff
path: root/src/string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/string.cpp')
-rw-r--r--src/string.cpp6
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;