Function

GLibstr_has_prefix

since: 2.2

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

Type: const gchar*

A string to look in.

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

Type: const gchar*

The prefix to look for.

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

Return value

Type: gboolean

True if str begins with prefix, false otherwise.