Regex
Object Hierarchy:
Description:
[ Compact ]
[ Version ( since = "2.14" ) ]
[ CCode ( ref_function = "g_regex_ref" , type_id = "G_TYPE_REGEX" , unref_function = "g_regex_unref" ) ]
public class Regex
[ Version ( since = "2.14" ) ]
[ CCode ( ref_function = "g_regex_ref" , type_id = "G_TYPE_REGEX" , unref_function = "g_regex_unref" ) ]
public class Regex
Namespace: GLib
Package: glib-2.0
Content:
Static methods:
- public static bool check_replacement (string replacement, out bool has_references = null) throws RegexError
- public static string escape_string (string str, int length = -1)
- public static bool match_simple (string pattern, string str, RegexCompileFlags compile_options = 0, RegexMatchFlags match_options = 0)
- public static string[] split_simple (string pattern, string str, RegexCompileFlags compile_options = 0, RegexMatchFlags match_options = 0)
Creation methods:
- public Regex (string pattern, RegexCompileFlags compile_options = 0, RegexMatchFlags match_options = 0) throws RegexError
Methods:
- public int get_capture_count ()
- public RegexCompileFlags get_compile_flags ()
- public bool get_has_cr_or_lf ()
- public RegexMatchFlags get_match_flags ()
- public int get_max_backref ()
- public int get_max_lookbehind ()
- public unowned string get_pattern ()
- public int get_string_number (string name)
- public bool match (string str, RegexMatchFlags match_options = 0, out MatchInfo match_info = null)
- public bool match_all (string str, RegexMatchFlags match_options = 0, out MatchInfo match_info = null)
- public bool match_all_full (string str, ssize_t string_len = -1, int start_position = 0, RegexMatchFlags match_options = 0, out MatchInfo match_info = null) throws RegexError
- public bool match_full (string str, ssize_t string_len = -1, int start_position = 0, RegexMatchFlags match_options = 0, out MatchInfo match_info = null) throws RegexError
- public string replace (string str, ssize_t string_len, int start_position, string replacement, RegexMatchFlags match_options = 0) throws RegexError
- public string replace_eval (string str, ssize_t string_len, int start_position, RegexMatchFlags match_options, RegexEvalCallback eval) throws RegexError
- public string replace_literal (string str, ssize_t string_len, int start_position, string replacement, RegexMatchFlags match_options = 0) throws RegexError
- public string[] split (string str, RegexMatchFlags match_options = 0)
- public string[] split_full (string str, ssize_t string_len = -1, int start_position = 0, RegexMatchFlags match_options = 0, int max_tokens = 0) throws RegexError