Function

GLibstr_has_prefix

Declaration [src]

gboolean
g_str_has_prefix (
  const gchar* str,
  const gchar* prefix
)

Description [src]

Looks whether the string str begins with prefix.

Available since:2.2

Parameters

str const gchar*
 

A nul-terminated string.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
prefix const gchar*
 

The nul-terminated prefix to look for.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.

Return value

Returns: gboolean
 

TRUE if str begins with prefix, FALSE otherwise.