Lines Matching refs:inp
2325 const unsigned char *in, *inp, *endp; in PHP_FUNCTION() local
2347 for (endp = (inp = in) + inlen; inp < endp; inp++) { in PHP_FUNCTION()
2350 if (SPECIAL(*inp)) { in PHP_FUNCTION()
2351 php_error_docref(NULL, E_WARNING, "Invalid modified UTF-7 character: `%c'", *inp); in PHP_FUNCTION()
2353 } else if (*inp != '&') { in PHP_FUNCTION()
2355 } else if (inp + 1 == endp) { in PHP_FUNCTION()
2358 } else if (inp[1] != '-') { in PHP_FUNCTION()
2362 inp++; in PHP_FUNCTION()
2364 } else if (*inp == '-') { in PHP_FUNCTION()
2367 php_error_docref(NULL, E_WARNING, "Stray modified base64 character: `%c'", *--inp); in PHP_FUNCTION()
2371 } else if (!B64CHAR(*inp)) { in PHP_FUNCTION()
2372 php_error_docref(NULL, E_WARNING, "Invalid modified base64 character: `%c'", *inp); in PHP_FUNCTION()
2404 for (endp = (inp = in) + inlen; inp < endp; inp++) { in PHP_FUNCTION()
2406 if (*inp == '&' && inp[1] != '-') { in PHP_FUNCTION()
2409 else if ((*outp++ = *inp) == '&') { in PHP_FUNCTION()
2410 inp++; in PHP_FUNCTION()
2413 else if (*inp == '-') { in PHP_FUNCTION()
2420 *outp = UNB64(*inp) << 2; in PHP_FUNCTION()
2424 outp[1] = UNB64(*inp); in PHP_FUNCTION()
2431 outp[1] = UNB64(*inp); in PHP_FUNCTION()
2438 *outp++ |= UNB64(*inp); in PHP_FUNCTION()
2464 const unsigned char *in, *inp, *endp; in PHP_FUNCTION() local
2486 endp = (inp = in) + inlen; in PHP_FUNCTION()
2487 while (inp < endp) { in PHP_FUNCTION()
2489 if (SPECIAL(*inp)) { in PHP_FUNCTION()
2492 } else if (*inp++ == '&') { in PHP_FUNCTION()
2496 } else if (!SPECIAL(*inp)) { in PHP_FUNCTION()
2510 inp++; in PHP_FUNCTION()
2520 endp = (inp = in) + inlen; in PHP_FUNCTION()
2521 while (inp < endp || state != ST_NORMAL) { in PHP_FUNCTION()
2523 if (SPECIAL(*inp)) { in PHP_FUNCTION()
2527 } else if ((*outp++ = *inp++) == '&') { in PHP_FUNCTION()
2530 } else if (inp == endp || !SPECIAL(*inp)) { in PHP_FUNCTION()
2542 *outp++ = B64(*inp >> 2); in PHP_FUNCTION()
2543 *outp = *inp++ << 4; in PHP_FUNCTION()
2547 c = B64(*outp | *inp >> 4); in PHP_FUNCTION()
2549 *outp = *inp++ << 2; in PHP_FUNCTION()
2553 c = B64(*outp | *inp >> 6); in PHP_FUNCTION()
2555 *outp++ = B64(*inp++); in PHP_FUNCTION()