SplitScript reference / String / equalsIgnoreAsciiCase
String.equalsIgnoreAsciiCase
Method
String.equalsIgnoreAsciiCase(other: String) -> bool
Compares two strings while ignoring ASCII letter case.
Only A through Z and a through z are folded. All other UTF-8 bytes must match exactly, so this operation is allocation-free and does not claim to implement Unicode case folding.
Parameters
other: The string to compare.
Effects: pure
Runtime behavior: available everywhere; synchronous
Examples
Match a process name with explicit ASCII semantics
let isGame = "LUNISTICE.EXE".equalsIgnoreAsciiCase("Lunistice.exe")