The index where substring first appears in s when ASCII letters are matched in either case, and
whether it was found. When it is not found the index is -1. An empty substring, or one longer than s,
is never found.
index_of_string_nocase :: (s: string, substring: string) -> (int, found: bool)
Parameters
- s: string
- substring: string
Returns
- int
- found: bool
index, found := index_of_string_nocase("Hello World", "WORLD");
assert(found && index == 6);