Regex
Object Hierarchy:
Description:
[ CCode ( ref_function = "vte_regex_ref" , type_id = "vte_regex_get_type ()" , unref_function = "vte_regex_unref" ) ]
[ Compact ]
public class Regex
Content:
Creation methods:
- public Regex.for_match (string pattern, ssize_t pattern_length, uint32 flags) throws Error
Compiles pattern
into a regex for use as a match regex
with match_add_regex or vte_terminal_event_check_regex_simple
.
- public Regex.for_search (string pattern, ssize_t pattern_length, uint32 flags) throws Error
Methods:
- public Regex @ref ()
Increases the reference count of this
by one.
- public bool jit (uint32 flags) throws Error
If the platform supports JITing, JIT compiles
this.
- public string substitute (string subject, string replacement, uint32 flags) throws Error
See man:pcre2api(3) and man:pcre2_substitute(3) for more information.
- public Regex unref ()
Decreases the reference count of this
by one, and frees this if the refcount reaches zero.