Function

Purplestr_has_caseprefix

Declaration [src]

gboolean
purple_str_has_caseprefix (
  const gchar* s,
  const gchar* p
)

Description [src]

Compares two strings to see if the first contains the second as a proper case-insensitive prefix.

Parameters

s

Type: const gchar*

The string to check.

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

Type: const gchar*

The prefix in question.

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 p is a prefix of s, otherwise FALSE.