Method
VteTerminalevent_check_regex_array
Declaration [src]
char**
vte_terminal_event_check_regex_array (
VteTerminal* terminal,
GdkEvent* event,
VteRegex** regexes,
gsize n_regexes,
guint32 match_flags,
gsize* n_matches
)
Description [src]
Like vte_terminal_event_check_regex_simple()
, but returns an array of strings,
containing the matching text (or NULL
if no match) corresponding to each of the
regexes in regexes
.
You must free each string and the array; but note that this is not a NULL
-terminated
string array, and so you must not use g_strfreev()
on it.
Available since: | 0.62 |
Parameters
event |
GdkEvent* |
A |
|
The data is owned by the caller of the function. | |
regexes |
An array of VteRegex |
An array of |
|
The length of the array is specified in the n_regexes argument. | |
The data is owned by the caller of the function. | |
n_regexes |
gsize |
Number of items in |
|
match_flags |
guint32 |
PCRE2 match flags, or 0 |
|
n_matches |
gsize* |
Number of items in |
|
The argument will be set by the function. | |
The argument can be NULL . | |
The instance takes ownership of the data, and is responsible for freeing it. |