Method
VteTerminalcheck_regex_simple_at
Declaration [src]
gboolean
vte_terminal_check_regex_simple_at (
VteTerminal* terminal,
double x,
double y,
VteRegex** regexes,
gsize n_regexes,
guint32 match_flags,
char** matches
)
Description [src]
Checks each regex in regexes
if the text in and around the position (x, y)
matches the regular expressions. If a match exists, the matched
text is stored in matches
at the position of the regex in regexes
; otherwise
NULL
is stored there. Each non-NULL
element of matches
should be freed with g_free().
Note that the regexes in regexes
should have been created using the PCRE2_MULTILINE
flag.
Available since: | 0.70 |
This method is not directly available to language bindings. | |
The implementation of this method is provided by vte_terminal_check_regex_array_at() in language bindings |
Parameters
x |
double |
No description available. | |
y |
double |
No description available. | |
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 |
|
The argument will be set by the function. | |
match_flags |
guint32 |
PCRE2 match flags, or 0 |
|
matches |
An array of char* |
A location to store the matches. |
|
The argument will be set by the function. | |
The length of the array is specified in the n_regexes argument. | |
The instance takes ownership of the data, and is responsible for freeing it. | |
Each element is a NUL terminated UTF-8 string. |