aboutsummaryrefslogtreecommitdiff
path: root/src/string.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-09-19 22:26:07 +0100
committerGinger Bill <bill@gingerbill.org>2016-09-19 22:26:07 +0100
commit3b266b194f36507208b6f90145475d93b53896ee (patch)
tree1e35cd6180d220614ca6553cfe5678122570c85e /src/string.cpp
parent9561dc33cef4c5881034d429524a0498331a740e (diff)
enum_to_string fix; enum count, min_value, max_value
Diffstat (limited to 'src/string.cpp')
-rw-r--r--src/string.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/string.cpp b/src/string.cpp
index 496c81d26..3843fa676 100644
--- a/src/string.cpp
+++ b/src/string.cpp
@@ -88,6 +88,15 @@ GB_COMPARE_PROC(string_cmp_proc) {
}
+bool operator ==(String a, String b) { return are_strings_equal(a, b) != 0; }
+bool operator !=(String a, String b) { return !operator==(a, b); }
+bool operator < (String a, String b) { return string_compare(a, b) < 0; }
+bool operator > (String a, String b) { return string_compare(a, b) > 0; }
+bool operator <=(String a, String b) { return string_compare(a, b) <= 0; }
+bool operator >=(String a, String b) { return string_compare(a, b) >= 0; }
+
+
+
gb_inline isize string_extension_position(String str) {
isize dot_pos = -1;
isize i = str.len;