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

Function ap_regcomp_default_cflag_by_name

server/util_pcre.c:173–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173AP_DECLARE(int) ap_regcomp_default_cflag_by_name(const char *name)
174{
175 int cflag = 0;
176
177 if (ap_cstr_casecmp(name, "ICASE") == 0) {
178 cflag = AP_REG_ICASE;
179 }
180 else if (ap_cstr_casecmp(name, "DOTALL") == 0) {
181 cflag = AP_REG_DOTALL;
182 }
183 else if (ap_cstr_casecmp(name, "DOLLAR_ENDONLY") == 0) {
184 cflag = AP_REG_DOLLAR_ENDONLY;
185 }
186 else if (ap_cstr_casecmp(name, "EXTENDED") == 0) {
187 cflag = AP_REG_EXTENDED;
188 }
189
190 return cflag;
191}
192
193/*
194 * Arguments:

Callers 1

Calls 1

ap_cstr_casecmpFunction · 0.85

Tested by

no test coverage detected