Add STRICMP case-insensitive string compare function (#2164)

This commit is contained in:
Rangi authored and GitHub committed 2026-09-27 00:19:10 +02:00
1 parent d95e9260e4
commit cf897aa065
4 files changed
+19 -1

No files matched your search

+8
View File
@@ -5,3 +5,11 @@ assert "fire flower" === "fire" ++ " " ++ "flower"
assert "a" === "b" == 0
assert 1 == "a" !== "b"
assert 1 + 2 * 3 ** "x" !== "y" == 7
assert !STRICMP("hello", "hello")
assert !STRICMP("hello", "HELLO")
assert !STRICMP("HeLlO", "hElLo")
assert STRICMP("HELLO", "goodBYE") > 0
assert STRICMP("hello", "GOODbye") > 0
assert STRICMP("", "hello") < 0
assert STRICMP("hello", "") > 0