Pattern.matchSimple

Matches a string against a pattern given as a string. If this function is to be called in a loop, it's more efficient to compile the pattern once with g_pattern_spec_new() and call g_pattern_match_string() repeatedly.

class Pattern
static
int
matchSimple
(
string pattern
,
string string
)

Parameters

pattern string

the UTF-8 encoded pattern

string string

the UTF-8 encoded string to match

Return Value

Type: int

TRUE if string matches pspec

Meta