Lines Matching refs:inp
2349 const unsigned char *in, *inp, *endp; in PHP_FUNCTION() local
2371 for (endp = (inp = in) + inlen; inp < endp; inp++) { in PHP_FUNCTION()
2374 if (SPECIAL(*inp)) { in PHP_FUNCTION()
2375 php_error_docref(NULL, E_WARNING, "Invalid modified UTF-7 character: `%c'", *inp); in PHP_FUNCTION()
2377 } else if (*inp != '&') { in PHP_FUNCTION()
2379 } else if (inp + 1 == endp) { in PHP_FUNCTION()
2382 } else if (inp[1] != '-') { in PHP_FUNCTION()
2386 inp++; in PHP_FUNCTION()
2388 } else if (*inp == '-') { in PHP_FUNCTION()
2391 php_error_docref(NULL, E_WARNING, "Stray modified base64 character: `%c'", *--inp); in PHP_FUNCTION()
2395 } else if (!B64CHAR(*inp)) { in PHP_FUNCTION()
2396 php_error_docref(NULL, E_WARNING, "Invalid modified base64 character: `%c'", *inp); in PHP_FUNCTION()
2427 for (endp = (inp = in) + inlen; inp < endp; inp++) { in PHP_FUNCTION()
2429 if (*inp == '&' && inp[1] != '-') { in PHP_FUNCTION()
2432 else if ((*outp++ = *inp) == '&') { in PHP_FUNCTION()
2433 inp++; in PHP_FUNCTION()
2436 else if (*inp == '-') { in PHP_FUNCTION()
2443 *outp = UNB64(*inp) << 2; in PHP_FUNCTION()
2447 outp[1] = UNB64(*inp); in PHP_FUNCTION()
2454 outp[1] = UNB64(*inp); in PHP_FUNCTION()
2461 *outp++ |= UNB64(*inp); in PHP_FUNCTION()
2487 const unsigned char *in, *inp, *endp; in PHP_FUNCTION() local
2509 endp = (inp = in) + inlen; in PHP_FUNCTION()
2510 while (inp < endp) { in PHP_FUNCTION()
2512 if (SPECIAL(*inp)) { in PHP_FUNCTION()
2515 } else if (*inp++ == '&') { in PHP_FUNCTION()
2519 } else if (!SPECIAL(*inp)) { in PHP_FUNCTION()
2533 inp++; in PHP_FUNCTION()
2543 endp = (inp = in) + inlen; in PHP_FUNCTION()
2544 while (inp < endp || state != ST_NORMAL) { in PHP_FUNCTION()
2546 if (SPECIAL(*inp)) { in PHP_FUNCTION()
2550 } else if ((*outp++ = *inp++) == '&') { in PHP_FUNCTION()
2553 } else if (inp == endp || !SPECIAL(*inp)) { in PHP_FUNCTION()
2565 *outp++ = B64(*inp >> 2); in PHP_FUNCTION()
2566 *outp = *inp++ << 4; in PHP_FUNCTION()
2570 c = B64(*outp | *inp >> 4); in PHP_FUNCTION()
2572 *outp = *inp++ << 2; in PHP_FUNCTION()
2576 c = B64(*outp | *inp >> 6); in PHP_FUNCTION()
2578 *outp++ = B64(*inp++); in PHP_FUNCTION()