MCPcopy Index your code
hub / github.com/apache/httpd / ap_cstr_casecmp

Function ap_cstr_casecmp

server/util.c:3542–3557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3540#endif
3541
3542AP_DECLARE(int) ap_cstr_casecmp(const char *s1, const char *s2)
3543{
3544 const unsigned char *str1 = (const unsigned char *)s1;
3545 const unsigned char *str2 = (const unsigned char *)s2;
3546 for (;;)
3547 {
3548 const int c1 = (int)(*str1);
3549 const int c2 = (int)(*str2);
3550 const int cmp = ucharmap[c1] - ucharmap[c2];
3551 /* Not necessary to test for !c2, this is caught by cmp */
3552 if (cmp || !c1)
3553 return cmp;
3554 str1++;
3555 str2++;
3556 }
3557}
3558
3559AP_DECLARE(int) ap_cstr_casecmpn(const char *s1, const char *s2, apr_size_t n)
3560{

Callers 15

filter_header_doFunction · 0.85
remove_header_doFunction · 0.85
uri_meets_conditionsFunction · 0.85
ap_cache_controlFunction · 0.85
dav_get_depthFunction · 0.85
process_mkcol_bodyFunction · 0.85
dav_lookup_uriFunction · 0.85
repos.cFile · 0.85
uniq_field_valuesFunction · 0.85
merge_response_headersFunction · 0.85
ap_setup_client_blockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected