Function
VteRegexnew_for_match
Declaration [src]
VteRegex*
vte_regex_new_for_match (
const char* pattern,
gssize pattern_length,
guint32 flags,
GError** error
)
Description [src]
Compiles pattern
into a regex for use as a match regex
with vte_terminal_match_add_regex()
or vte_terminal_event_check_regex_simple().
See man:pcre2pattern(3) for information about the supported regex language.
The regex will be compiled using flags
.
Parameters
pattern |
const char* |
A regex pattern string. |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
pattern_length |
gssize |
The length of |
|
flags |
guint32 |
PCRE2 compile flags. |
|
error |
GError ** |
The return location for a GError* , or NULL . |
Return value
Returns: | VteRegex |
A newly created |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |