PCRE – Perl-compatible regular expressions
Synopsis
#include <pcre.h>
int pcre_config(int what, void *where);
int pcre16_config(int what, void *where);
int pcre32_config(int what, void *where);
Description
This function makes it possible for a client program to find out which optional features are available in the version of the PCRE library it is using. The arguments are as follows:
what A code specifying what information is required
where Points to where to put the data The where argument must point to an integer variable, except for PCRE_CONFIG_MATCH_LIMIT, PCRE_CONFIG_MATCH_LIMIT_RECURSION, and PCRE_CONFIG_PARENS_LIMIT, when it must point to an unsigned long integer, and for PCRE_CONFIG_JITTARGET, when it must point to a const char*. The available codes are: The function yields 0 on success or PCRE_ERROR_BADOPTION otherwise. That error is also given if PCRE_CONFIG_UTF16 or PCRE_CONFIG_UTF32 is passed to pcre_config(), if PCRE_CONFIG_UTF8 or PCRE_CONFIG_UTF32 is passed to pcre16_config(), or if PCRE_CONFIG_UTF8 or PCRE_CONFIG_UTF16 is passed to pcre32_config(). There is a complete description of the PCRE native API in the pcreapi page and a description of the POSIX API in the pcreposix page.