match_string


Description:

[ Version ( deprecated_since = "2.70" ) ]
[ CCode ( cname = "g_pattern_match_string" ) ]
public bool match_string (string str)

Warning: match_string is deprecated since 2.70.

Matches a string against a compiled pattern.

Note:

Use [method@GLib.PatternSpec.match_string] instead

If the string is to be matched against more than one pattern, consider using [method@GLib.PatternSpec.match] instead while supplying the reversed string.

Parameters:

pspec

a PatternSpec

string

the UTF-8 encoded string to match

Returns:

true if string matches pspec