Lines Matching refs:inp
2828 const unsigned char *in, *inp, *endp; in PHP_FUNCTION() local
2850 for (endp = (inp = in) + inlen; inp < endp; inp++) { in PHP_FUNCTION()
2853 if (SPECIAL(*inp)) { in PHP_FUNCTION()
2854 php_error_docref(NULL, E_WARNING, "Invalid modified UTF-7 character: `%c'", *inp); in PHP_FUNCTION()
2856 } else if (*inp != '&') { in PHP_FUNCTION()
2858 } else if (inp + 1 == endp) { in PHP_FUNCTION()
2861 } else if (inp[1] != '-') { in PHP_FUNCTION()
2865 inp++; in PHP_FUNCTION()
2867 } else if (*inp == '-') { in PHP_FUNCTION()
2870 php_error_docref(NULL, E_WARNING, "Stray modified base64 character: `%c'", *--inp); in PHP_FUNCTION()
2874 } else if (!B64CHAR(*inp)) { in PHP_FUNCTION()
2875 php_error_docref(NULL, E_WARNING, "Invalid modified base64 character: `%c'", *inp); in PHP_FUNCTION()
2906 for (endp = (inp = in) + inlen; inp < endp; inp++) { in PHP_FUNCTION()
2908 if (*inp == '&' && inp[1] != '-') { in PHP_FUNCTION()
2911 else if ((*outp++ = *inp) == '&') { in PHP_FUNCTION()
2912 inp++; in PHP_FUNCTION()
2915 else if (*inp == '-') { in PHP_FUNCTION()
2922 *outp = UNB64(*inp) << 2; in PHP_FUNCTION()
2926 outp[1] = UNB64(*inp); in PHP_FUNCTION()
2933 outp[1] = UNB64(*inp); in PHP_FUNCTION()
2940 *outp++ |= UNB64(*inp); in PHP_FUNCTION()
2967 const unsigned char *in, *inp, *endp; in PHP_FUNCTION() local
2989 endp = (inp = in) + inlen; in PHP_FUNCTION()
2990 while (inp < endp) { in PHP_FUNCTION()
2992 if (SPECIAL(*inp)) { in PHP_FUNCTION()
2995 } else if (*inp++ == '&') { in PHP_FUNCTION()
2999 } else if (!SPECIAL(*inp)) { in PHP_FUNCTION()
3013 inp++; in PHP_FUNCTION()
3023 endp = (inp = in) + inlen; in PHP_FUNCTION()
3024 while (inp < endp || state != ST_NORMAL) { in PHP_FUNCTION()
3026 if (SPECIAL(*inp)) { in PHP_FUNCTION()
3030 } else if ((*outp++ = *inp++) == '&') { in PHP_FUNCTION()
3033 } else if (inp == endp || !SPECIAL(*inp)) { in PHP_FUNCTION()
3045 *outp++ = B64(*inp >> 2); in PHP_FUNCTION()
3046 *outp = *inp++ << 4; in PHP_FUNCTION()
3050 c = B64(*outp | *inp >> 4); in PHP_FUNCTION()
3052 *outp = *inp++ << 2; in PHP_FUNCTION()
3056 c = B64(*outp | *inp >> 6); in PHP_FUNCTION()
3058 *outp++ = B64(*inp++); in PHP_FUNCTION()