has_prefix


Description:

[ Version ( since = "2.2" ) ]
[ CCode ( cname = "g_str_has_prefix" ) ]
public bool has_prefix (string prefix)

Looks whether the string str begins with prefix.

Parameters:

prefix

the prefix to look for

str

a string to look in

Returns:

true if str begins with prefix, false otherwise