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

Function ap_cstr_casecmpn

server/util.c:3559–3575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3557}
3558
3559AP_DECLARE(int) ap_cstr_casecmpn(const char *s1, const char *s2, apr_size_t n)
3560{
3561 const unsigned char *str1 = (const unsigned char *)s1;
3562 const unsigned char *str2 = (const unsigned char *)s2;
3563 while (n--)
3564 {
3565 const int c1 = (int)(*str1);
3566 const int c2 = (int)(*str2);
3567 const int cmp = ucharmap[c1] - ucharmap[c2];
3568 /* Not necessary to test for !c2, this is caught by cmp */
3569 if (cmp || !c1)
3570 return cmp;
3571 str1++;
3572 str2++;
3573 }
3574 return 0;
3575}
3576
3577typedef struct {
3578 const char *fname;

Callers 15

ap_cache_controlFunction · 0.85
cache_control_removeFunction · 0.85
dav_parse_rangeFunction · 0.85
proxy_fcgi_canonFunction · 0.85
proxy_fcgi_handlerFunction · 0.85
proxy_handlerFunction · 0.85
ap_proxy_de_socketfyFunction · 0.85
proxy_fdpass_canonFunction · 0.85
proxy_fdpass_handlerFunction · 0.85
proxy_balancer_canonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected