Str.hasSuffix

Looks whether the string @str ends with @suffix.

struct Str
static
bool
hasSuffix
(
string str
,
string suffix
)

Parameters

str string

a nul-terminated string

suffix string

the nul-terminated suffix to look for

Return Value

Type: bool

%TRUE if @str end with @suffix, %FALSE otherwise.

Meta