Str.hasPrefix

Looks whether the string @str begins with @prefix.

struct Str
static
bool
hasPrefix
(
string str
,
string prefix
)

Parameters

str string

a nul-terminated string

prefix string

the nul-terminated prefix to look for

Return Value

Type: bool

%TRUE if @str begins with @prefix, %FALSE otherwise.

Meta