Str.strHasPrefix

Looks whether the string str begins with prefix. Since 2.2

class Str
static
int
strHasPrefix
(
string str
,
string prefix
)

Parameters

str string

a nul-terminated string

prefix string

the nul-terminated prefix to look for

Return Value

Type: int

TRUE if str begins with prefix, FALSE otherwise.

Meta