Lines Matching refs:current
58 const unsigned char *current = str; in php_base64_encode() local
73 *p++ = base64_table[current[0] >> 2]; in php_base64_encode()
74 *p++ = base64_table[((current[0] & 0x03) << 4) + (current[1] >> 4)]; in php_base64_encode()
75 *p++ = base64_table[((current[1] & 0x0f) << 2) + (current[2] >> 6)]; in php_base64_encode()
76 *p++ = base64_table[current[2] & 0x3f]; in php_base64_encode()
78 current += 3; in php_base64_encode()
84 *p++ = base64_table[current[0] >> 2]; in php_base64_encode()
86 *p++ = base64_table[((current[0] & 0x03) << 4) + (current[1] >> 4)]; in php_base64_encode()
87 *p++ = base64_table[(current[1] & 0x0f) << 2]; in php_base64_encode()
90 *p++ = base64_table[(current[0] & 0x03) << 4]; in php_base64_encode()
145 const unsigned char *current = str; in php_base64_decode_ex() local
153 while ((ch = *current++) != '\0' && length-- > 0) { in php_base64_decode_ex()
155 if (*current != '=' && ((i % 4) == 1 || (strict && length > 0))) { in php_base64_decode_ex()
157 while (isspace(*(++current))) { in php_base64_decode_ex()
160 if (*current == '\0') { in php_base64_decode_ex()