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: %TRUE if @str end with @suffix, %FALSE otherwise.

Meta