String module

match_token_nocase

procedure · 1 overloadSource

Like match_token, with ASCII letters matched in either case.

match_token_nocase :: (
    line: *string,
    match: string,
    delimiters := DEFAULT_DELIMITERS,
    spaces := DEFAULT_SPACES
) -> (value: string, success: bool)

Parameters

line: *string
match: string
delimiters := DEFAULT_DELIMITERS
spaces := DEFAULT_SPACES

Returns

value: string
success: bool
ExampleOpen in playground ↗
line := "IF x";
_, matched := match_token_nocase(*line, "if");
assert(matched);

See also