strHasPrefix

fnbool strHasPrefix(string str, string prefix)

Looks whether the string str begins with prefix.

Parameters

stra string to look in
prefixthe prefix to look for

Returns

true if str begins with prefix, false otherwise