strHasPrefix

Looks whether the string str begins with prefix.

bool
strHasPrefix
(
string str
,
string prefix
)

Parameters

str string

a string to look in

prefix string

the prefix to look for

Return Value

Type: bool

true if str begins with prefix, false otherwise