Method
VteTerminalcheck_regex_array_at
since: 0.70
Declaration [src]
char**
vte_terminal_check_regex_array_at (
VteTerminal* terminal,
double x,
double y,
VteRegex** regexes,
gsize n_regexes,
guint32 match_flags,
gsize* n_matches
)
Description [src]
Like vte_terminal_check_regex_simple_at(), 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.70
This method is renamed to vte_terminal_check_regex_simple_at() in language bindings.
Parameters
x-
Type:
doubleNo description available.
y-
Type:
doubleNo description available.
regexes-
Type: An array of
VteRegex*An array of
VteRegex.The length of the array is specified in the n_regexesargument.The data is owned by the caller of the method. n_regexes-
Type:
gsizeNumber of items in
regexes. match_flags-
Type:
guint32PCRE2 match flags, or 0.
n_matches-
Type:
gsize*Number of items in
matches, which is always equal ton_regexes.The argument will be set by the function. The argument can be NULL.
Return value
Type: An array of utf8
A newly allocated array of strings, or NULL if none of the regexes matched.
The length of the array is in the n_matches argument. |
| The caller of the method takes ownership of the returned data, and is responsible for freeing it. |
The return value can be NULL. |
| Each element is a NUL terminated UTF-8 string. |