Lines Matching refs:s

62     const unsigned char * const s = (unsigned char *)b->ptr;  in burl_normalize_basic_unreserved_fix()  local
66 memcpy(p, s, (size_t)i); in burl_normalize_basic_unreserved_fix()
68 if (!encoded_chars_http_uri_reqd[s[i]]) { in burl_normalize_basic_unreserved_fix()
69 p[j] = s[i]; in burl_normalize_basic_unreserved_fix()
70 if (__builtin_expect( (s[i] == '?'), 0) && -1 == qs) qs = j; in burl_normalize_basic_unreserved_fix()
72 else if (s[i]=='%' && li_cton(s[i+1], n1) && li_cton(s[i+2], n2)) { in burl_normalize_basic_unreserved_fix()
85 else if (s[i] == '#') break; /* ignore fragment */ in burl_normalize_basic_unreserved_fix()
88 p[++j] = hex_chars_uc[(s[i] >> 4) & 0xF]; in burl_normalize_basic_unreserved_fix()
89 p[++j] = hex_chars_uc[s[i] & 0xF]; in burl_normalize_basic_unreserved_fix()
90 if (li_utf8_invalid_byte(s[i])) qs = -2; in burl_normalize_basic_unreserved_fix()
100 const unsigned char * const s = (unsigned char *)b->ptr; in burl_normalize_basic_unreserved() local
106 if (!encoded_chars_http_uri_reqd[s[i]]) { in burl_normalize_basic_unreserved()
107 if (__builtin_expect( (s[i] == '?'), 0) && -1 == qs) qs = i; in burl_normalize_basic_unreserved()
109 else if (s[i]=='%' && li_cton(s[i+1], n1) && li_cton(s[i+2], n2) in burl_normalize_basic_unreserved()
112 if (s[i+1] >= 'a') b->ptr[i+1] &= 0xdf; /* uppercase hex */ in burl_normalize_basic_unreserved()
113 if (s[i+2] >= 'a') b->ptr[i+2] &= 0xdf; /* uppercase hex */ in burl_normalize_basic_unreserved()
116 else if (s[i] == '#') { /* ignore fragment */ in burl_normalize_basic_unreserved()
134 const unsigned char * const s = (unsigned char *)b->ptr; in burl_normalize_basic_required_fix() local
139 memcpy(p, s, (size_t)i); in burl_normalize_basic_required_fix()
141 if (!encoded_chars_http_uri_reqd[s[i]]) { in burl_normalize_basic_required_fix()
142 p[j] = s[i]; in burl_normalize_basic_required_fix()
143 if (__builtin_expect( (s[i] == '?'), 0)) qs = j; in burl_normalize_basic_required_fix()
145 else if (s[i]=='%' && li_cton(s[i+1], n1) && li_cton(s[i+2], n2)) { in burl_normalize_basic_required_fix()
161 else if (s[i] == '#') break; /* ignore fragment */ in burl_normalize_basic_required_fix()
164 p[++j] = hex_chars_uc[(s[i] >> 4) & 0xF]; in burl_normalize_basic_required_fix()
165 p[++j] = hex_chars_uc[s[i] & 0xF]; in burl_normalize_basic_required_fix()
166 invalid_utf8 |= li_utf8_invalid_byte(s[i]); in burl_normalize_basic_required_fix()
176 const unsigned char * const s = (unsigned char *)b->ptr; in burl_normalize_basic_required() local
183 if (!encoded_chars_http_uri_reqd[s[i]]) { in burl_normalize_basic_required()
184 if (s[i] == '?') qs = i; in burl_normalize_basic_required()
186 else if (s[i]=='%' && li_cton(s[i+1], n1) && li_cton(s[i+2], n2) in burl_normalize_basic_required()
192 if (s[i+1] >= 'a') b->ptr[i+1] &= 0xdf; /* uppercase hex */ in burl_normalize_basic_required()
193 if (s[i+2] >= 'a') b->ptr[i+2] &= 0xdf; /* uppercase hex */ in burl_normalize_basic_required()
196 else if (s[i] == '#') { /* ignore fragment */ in burl_normalize_basic_required()
212 const char * const s = b->ptr; in burl_contains_ctrls() local
215 if (s[i] == '%' && (s[i+1] < '2' || (s[i+1] == '7' && s[i+2] == 'F'))) in burl_contains_ctrls()
224 char * const s = b->ptr; in burl_normalize_qs20_to_plus_fix() local
228 s[j] = s[i]; in burl_normalize_qs20_to_plus_fix()
229 if (s[i] == '%' && s[i+1] == '2' && s[i+2] == '0') { in burl_normalize_qs20_to_plus_fix()
230 s[j] = '+'; in burl_normalize_qs20_to_plus_fix()
240 const char * const s = b->ptr; in burl_normalize_qs20_to_plus() local
245 if (s[i] == '%' && s[i+1] == '2' && s[i+2] == '0') break; in burl_normalize_qs20_to_plus()
253 char * const s = b->ptr; in burl_normalize_2F_to_slash_fix() local
258 s[j] = s[i]; in burl_normalize_2F_to_slash_fix()
259 if (s[i] == '%' && s[i+1] == '2' && s[i+2] == 'F') { in burl_normalize_2F_to_slash_fix()
260 s[j] = '/'; in burl_normalize_2F_to_slash_fix()
266 memmove(s+j, s+qs, (size_t)qslen); in burl_normalize_2F_to_slash_fix()
278 const char * const s = b->ptr; in burl_normalize_2F_to_slash() local
281 if (s[i] == '%' && s[i+1] == '2' && s[i+2] == 'F') { in burl_normalize_2F_to_slash()
293 const unsigned char * const s = (unsigned char *)b->ptr; in burl_normalize_path() local
297 if (s[i] == '.' && (s[i+1] != '.' || ++i) in burl_normalize_path()
298 && (s[i+1] == '/' || s[i+1] == '?' || s[i+1] == '\0')) { in burl_normalize_path()
302 while (i < len && s[i] != '/') ++i; in burl_normalize_path()
303 if (s[i] == '/' && s[i+1] == '/') { /*(s[len] != '/')*/ in burl_normalize_path()
522 const unsigned char *s = (const unsigned char *)str; in burl_append() local
523 buffer_append_base64_encode_no_padding(b, s, len, BASE64_URL); in burl_append()