String module

ends_with_nocase

procedure · 1 overloadSource

Like ends_with, with ASCII letters matched in either case.

ends_with_nocase :: (s: string, suffix: string) -> bool

Parameters

s: string
suffix: string

Returns

bool
ExampleOpen in playground ↗
assert(ends_with_nocase("PHOTO.JPG", ".jpg"));

See also