Regex.newForSearchFull
vte.regex.Regex newForSearchFull(string pattern, uint flags, uint extraFlags, out size_t errorOffset)Compiles pattern into a regex for use as a search regex with [vte.terminal.Terminal.searchSetRegex].
See man:pcre2pattern(3) for information about the supported regex language, and man:pcre2api(3) for information about the supported flags and extra_flags.
The regex will be compiled using <literal>PCRE2_UTF</literal> and possibly other flags, in addition to the flags supplied in flags.
If regex compilation fails, error will be set and error_offset point to error as an offset into pattern.
Parameters
pattern | a regex pattern string |
flags | PCRE2 compile flags |
extraFlags | |
errorOffset | return location to store the error offset |
Returns
a newly created #VteRegex, or null
Throws
[ErrorWrap]