strHasPrefix

fun strHasPrefix(str: String, prefix: String): Boolean

Looks whether the string @str begins with @prefix.

Return

true if @str begins with @prefix, false otherwise

Since

2.2

Parameters

str

a string to look in

prefix

the prefix to look for