Lines Matching refs:current
58 const unsigned char *current = str; in php_base64_encode() local
79 *p++ = base64_table[current[0] >> 2]; in php_base64_encode()
80 *p++ = base64_table[((current[0] & 0x03) << 4) + (current[1] >> 4)]; in php_base64_encode()
81 *p++ = base64_table[((current[1] & 0x0f) << 2) + (current[2] >> 6)]; in php_base64_encode()
82 *p++ = base64_table[current[2] & 0x3f]; in php_base64_encode()
84 current += 3; in php_base64_encode()
90 *p++ = base64_table[current[0] >> 2]; in php_base64_encode()
92 *p++ = base64_table[((current[0] & 0x03) << 4) + (current[1] >> 4)]; in php_base64_encode()
93 *p++ = base64_table[(current[1] & 0x0f) << 2]; in php_base64_encode()
96 *p++ = base64_table[(current[0] & 0x03) << 4]; in php_base64_encode()
151 const unsigned char *current = str; in php_base64_decode_ex() local
159 while ((ch = *current++) != '\0' && length-- > 0) { in php_base64_decode_ex()
161 if (*current != '=' && ((i % 4) == 1 || (strict && length > 0))) { in php_base64_decode_ex()
163 while (isspace(*(++current))) { in php_base64_decode_ex()
166 if (*current == '\0') { in php_base64_decode_ex()