String module

begins_with_nocase

procedure · 1 overloadSource

Like begins_with, with ASCII letters matched in either case.

begins_with_nocase :: (s: string, prefix: string) -> bool

Parameters

s: string
prefix: string

Returns

bool
ExampleOpen in playground ↗
assert(begins_with_nocase("Content-Length: 5", "content-length"));

See also