MCPcopy Create free account
hub / github.com/apache/httpd / ap_pcre_version_string

Function ap_pcre_version_string

server/util_pcre.c:93–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91};
92
93AP_DECLARE(const char *) ap_pcre_version_string(int which)
94{
95#ifdef HAVE_PCRE2
96 static char buf[80];
97#endif
98 switch (which) {
99 case AP_REG_PCRE_COMPILED:
100 return APR_STRINGIFY(PCREn(MAJOR)) "." APR_STRINGIFY(PCREn(MINOR)) " " APR_STRINGIFY(PCREn(DATE));
101 case AP_REG_PCRE_LOADED:
102#ifdef HAVE_PCRE2
103 pcre2_config(PCRE2_CONFIG_VERSION, buf);
104 return buf;
105#else
106 return pcre_version();
107#endif
108 default:
109 return "Unknown";
110 }
111}
112
113AP_DECLARE(apr_size_t) ap_regerror(int errcode, const ap_regex_t *preg,
114 char *errbuf, apr_size_t errbuf_size)

Callers 2

show_server_settingsFunction · 0.85
show_compile_settingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected