Function

Purplestrmatches

unstable since: 3.0

Declaration [src]

gboolean
purple_strmatches (
  const char* pattern,
  const char* str
)

Description [src]

Checks if pattern occurs in sequential order in str in a caseless fashion, ignoring characters in between.

For example, if pattern was Pg and str was Pidgin, this will return TRUE.

Available since: 3.0

Parameters

pattern

Type: const char*

The pattern to search for.

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

Type: const char*

The string to check.

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 pattern occurs in sequential order in str, FALSE otherwise.