Compiles pattern into a regex for use as a match regex with
match_add_regex or vte_terminal_event_check_regex_simple.
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, throws will be set and error_offset point to error as an
offset into pattern.
| pattern |
a regex pattern string |
| pattern_length |
the length of |
| flags |
PCRE2 compile flags |
| extra_flags |
PCRE2 extra compile flags |
| error_offset |
return location to store the error offset |
|
a newly created Regex, or null |