pcre2_pattern_convert (3) Linux Manual Page
PCRE2 – Perl-compatible regular expressions (revised API)
Synopsis
#include <pcre2.h>
int pcre2_pattern_convert(PCRE2_SPTR pattern, PCRE2_SIZE length,
uint32_t options, PCRE2_UCHAR **buffer,
PCRE2_SIZE *blength, pcre2_convert_context *cvcontext);
Description
This function is part of an experimental set of pattern conversion functions. It converts a foreign pattern (for example, a glob) into a PCRE2 regular expression pattern. Its arguments are:
malloc()), and the field pointed to by buffer is updated. If buffer points to a non-NULL field, that must point to a buffer whose size is in the variable pointed to by blength. This value is updated. The option bits are:
pcre2_pattern_convert() is zero on success or a non-zero PCRE2 error code. The pattern conversion functions are described in the pcre2convert documentation.
