Lines Matching refs:ps
464 register unsigned char *ps, *pd; in php_conv_base64_encode_convert() local
473 ps = (unsigned char *)(*in_pp); in php_conv_base64_encode_convert()
495 *(pd++) = b64_tbl_enc[(unsigned char)(inst->erem[0] << 4) | (ps[0] >> 4)]; in php_conv_base64_encode_convert()
496 *(pd++) = b64_tbl_enc[(unsigned char)(ps[0] << 2) | (ps[1] >> 6)]; in php_conv_base64_encode_convert()
497 *(pd++) = b64_tbl_enc[ps[1]]; in php_conv_base64_encode_convert()
499 ps += 2; in php_conv_base64_encode_convert()
523 *(pd++) = b64_tbl_enc[(unsigned char)(inst->erem[1] << 2) | (ps[0] >> 6)]; in php_conv_base64_encode_convert()
524 *(pd++) = b64_tbl_enc[ps[0]]; in php_conv_base64_encode_convert()
526 ps += 1; in php_conv_base64_encode_convert()
549 *(pd++) = b64_tbl_enc[ps[0] >> 2]; in php_conv_base64_encode_convert()
550 *(pd++) = b64_tbl_enc[(unsigned char)(ps[0] << 4) | (ps[1] >> 4)]; in php_conv_base64_encode_convert()
551 *(pd++) = b64_tbl_enc[(unsigned char)(ps[1] << 2) | (ps[2] >> 6)]; in php_conv_base64_encode_convert()
552 *(pd++) = b64_tbl_enc[ps[2]]; in php_conv_base64_encode_convert()
554 ps += 3; in php_conv_base64_encode_convert()
560 inst->erem[inst->erem_len++] = *(ps++); in php_conv_base64_encode_convert()
564 *in_pp = (const char *)ps; in php_conv_base64_encode_convert()
631 unsigned char *ps, *pd; in php_conv_base64_decode_convert() local
646 ps = (unsigned char *)*in_pp; in php_conv_base64_decode_convert()
676 i = b64_tbl_dec[(unsigned int)*(ps++)]; in php_conv_base64_decode_convert()
727 *in_pp = (const char *)ps; in php_conv_base64_decode_convert()
766 #define NEXT_CHAR(ps, icnt, lb_ptr, lb_cnt, lbchars) \ argument
767 ((lb_ptr) < (lb_cnt) ? (lbchars)[(lb_ptr)] : *(ps))
769 #define CONSUME_CHAR(ps, icnt, lb_ptr, lb_cnt) \ argument
775 (ps)++; \
781 unsigned char *ps, *pd; in php_conv_qprint_encode_convert() local
800 ps = (unsigned char *)(*in_pp); in php_conv_qprint_encode_convert()
811 if (icnt > 0 && *ps == inst->lbchars[lb_cnt]) { in php_conv_qprint_encode_convert()
830 ps++, icnt--; in php_conv_qprint_encode_convert()
839 c = NEXT_CHAR(ps, icnt, lb_ptr, lb_cnt, inst->lbchars); in php_conv_qprint_encode_convert()
871 ps2 = ps; in php_conv_qprint_encode_convert()
898 CONSUME_CHAR(ps, icnt, lb_ptr, lb_cnt); in php_conv_qprint_encode_convert()
923 CONSUME_CHAR(ps, icnt, lb_ptr, lb_cnt); in php_conv_qprint_encode_convert()
951 CONSUME_CHAR(ps, icnt, lb_ptr, lb_cnt); in php_conv_qprint_encode_convert()
955 *in_pp = (const char *)ps; in php_conv_qprint_encode_convert()
1016 unsigned char *ps, *pd; in php_conv_qprint_decode_convert() local
1031 ps = (unsigned char *)(*in_pp); in php_conv_qprint_decode_convert()
1044 if (*ps == '=') { in php_conv_qprint_decode_convert()
1051 *(pd++) = *ps; in php_conv_qprint_decode_convert()
1054 ps++, icnt--; in php_conv_qprint_decode_convert()
1061 if (*ps == ' ' || *ps == '\t') { in php_conv_qprint_decode_convert()
1063 ps++, icnt--; in php_conv_qprint_decode_convert()
1065 } else if (!inst->lbchars && lb_cnt == 0 && *ps == '\r') { in php_conv_qprint_decode_convert()
1069 ps++, icnt--; in php_conv_qprint_decode_convert()
1071 } else if (!inst->lbchars && lb_cnt == 0 && *ps == '\n') { in php_conv_qprint_decode_convert()
1075 ps++, icnt--; in php_conv_qprint_decode_convert()
1078 *ps == (unsigned char)inst->lbchars[lb_cnt]) { in php_conv_qprint_decode_convert()
1081 ps++, icnt--; in php_conv_qprint_decode_convert()
1091 if (!isxdigit((int) *ps)) { in php_conv_qprint_decode_convert()
1095 next_char = (next_char << 4) | (*ps >= 'A' ? *ps - 0x37 : *ps - 0x30); in php_conv_qprint_decode_convert()
1097 ps++, icnt--; in php_conv_qprint_decode_convert()
1118 *ps == (unsigned char)inst->lbchars[lb_cnt]) { in php_conv_qprint_decode_convert()
1122 if (*ps != '\t' && *ps != ' ') { in php_conv_qprint_decode_convert()
1126 ps++, icnt--; in php_conv_qprint_decode_convert()
1130 if (!inst->lbchars && lb_cnt == 1 && *ps == '\n') { in php_conv_qprint_decode_convert()
1134 ps++, icnt--; /* consume \n */ in php_conv_qprint_decode_convert()
1144 if (*ps == (unsigned char)inst->lbchars[lb_cnt]) { in php_conv_qprint_decode_convert()
1146 ps++, icnt--; in php_conv_qprint_decode_convert()
1171 *in_pp = (const char *)ps; in php_conv_qprint_decode_convert()
1470 const char *ps, size_t buf_len, size_t *consumed, in strfilter_convert_append_bucket() argument
1482 if (ps == NULL) { in strfilter_convert_append_bucket()
1510 if (ps != NULL) { in strfilter_convert_append_bucket()
1516 inst->stub[inst->stub_len++] = *(ps++); in strfilter_convert_append_bucket()
1580 err = ((ps == NULL ? php_conv_convert(inst->cd, NULL, NULL, &pd, &ocnt): in strfilter_convert_append_bucket()
1581 php_conv_convert(inst->cd, &ps, &icnt, &pd, &ocnt))); in strfilter_convert_append_bucket()
1588 if (ps != NULL) { in strfilter_convert_append_bucket()
1593 memcpy(inst->stub, ps, icnt); in strfilter_convert_append_bucket()
1595 ps += icnt; in strfilter_convert_append_bucket()
1643 if (ps == NULL) { in strfilter_convert_append_bucket()