Lines Matching refs:ps
459 register unsigned char *ps, *pd; in php_conv_base64_encode_convert() local
468 ps = (unsigned char *)(*in_pp); in php_conv_base64_encode_convert()
490 *(pd++) = b64_tbl_enc[(unsigned char)(inst->erem[0] << 4) | (ps[0] >> 4)]; in php_conv_base64_encode_convert()
491 *(pd++) = b64_tbl_enc[(unsigned char)(ps[0] << 2) | (ps[1] >> 6)]; in php_conv_base64_encode_convert()
492 *(pd++) = b64_tbl_enc[ps[1]]; in php_conv_base64_encode_convert()
494 ps += 2; in php_conv_base64_encode_convert()
518 *(pd++) = b64_tbl_enc[(unsigned char)(inst->erem[1] << 2) | (ps[0] >> 6)]; in php_conv_base64_encode_convert()
519 *(pd++) = b64_tbl_enc[ps[0]]; in php_conv_base64_encode_convert()
521 ps += 1; in php_conv_base64_encode_convert()
544 *(pd++) = b64_tbl_enc[ps[0] >> 2]; in php_conv_base64_encode_convert()
545 *(pd++) = b64_tbl_enc[(unsigned char)(ps[0] << 4) | (ps[1] >> 4)]; in php_conv_base64_encode_convert()
546 *(pd++) = b64_tbl_enc[(unsigned char)(ps[1] << 2) | (ps[2] >> 6)]; in php_conv_base64_encode_convert()
547 *(pd++) = b64_tbl_enc[ps[2]]; in php_conv_base64_encode_convert()
549 ps += 3; in php_conv_base64_encode_convert()
555 inst->erem[inst->erem_len++] = *(ps++); in php_conv_base64_encode_convert()
559 *in_pp = (const char *)ps; in php_conv_base64_encode_convert()
626 unsigned char *ps, *pd; in php_conv_base64_decode_convert() local
641 ps = (unsigned char *)*in_pp; in php_conv_base64_decode_convert()
671 i = b64_tbl_dec[(unsigned int)*(ps++)]; in php_conv_base64_decode_convert()
722 *in_pp = (const char *)ps; in php_conv_base64_decode_convert()
761 #define NEXT_CHAR(ps, icnt, lb_ptr, lb_cnt, lbchars) \ argument
762 ((lb_ptr) < (lb_cnt) ? (lbchars)[(lb_ptr)] : *(ps))
764 #define CONSUME_CHAR(ps, icnt, lb_ptr, lb_cnt) \ argument
770 (ps)++; \
776 unsigned char *ps, *pd; in php_conv_qprint_encode_convert() local
795 ps = (unsigned char *)(*in_pp); in php_conv_qprint_encode_convert()
806 if (icnt > 0 && *ps == inst->lbchars[lb_cnt]) { in php_conv_qprint_encode_convert()
825 ps++, icnt--; in php_conv_qprint_encode_convert()
834 c = NEXT_CHAR(ps, icnt, lb_ptr, lb_cnt, inst->lbchars); in php_conv_qprint_encode_convert()
866 ps2 = ps; in php_conv_qprint_encode_convert()
893 CONSUME_CHAR(ps, icnt, lb_ptr, lb_cnt); in php_conv_qprint_encode_convert()
918 CONSUME_CHAR(ps, icnt, lb_ptr, lb_cnt); in php_conv_qprint_encode_convert()
946 CONSUME_CHAR(ps, icnt, lb_ptr, lb_cnt); in php_conv_qprint_encode_convert()
950 *in_pp = (const char *)ps; in php_conv_qprint_encode_convert()
1011 unsigned char *ps, *pd; in php_conv_qprint_decode_convert() local
1026 ps = (unsigned char *)(*in_pp); in php_conv_qprint_decode_convert()
1039 if (*ps == '=') { in php_conv_qprint_decode_convert()
1046 *(pd++) = *ps; in php_conv_qprint_decode_convert()
1049 ps++, icnt--; in php_conv_qprint_decode_convert()
1056 if (*ps == ' ' || *ps == '\t') { in php_conv_qprint_decode_convert()
1058 ps++, icnt--; in php_conv_qprint_decode_convert()
1060 } else if (!inst->lbchars && lb_cnt == 0 && *ps == '\r') { in php_conv_qprint_decode_convert()
1064 ps++, icnt--; in php_conv_qprint_decode_convert()
1066 } else if (!inst->lbchars && lb_cnt == 0 && *ps == '\n') { in php_conv_qprint_decode_convert()
1070 ps++, icnt--; in php_conv_qprint_decode_convert()
1073 *ps == (unsigned char)inst->lbchars[lb_cnt]) { in php_conv_qprint_decode_convert()
1076 ps++, icnt--; in php_conv_qprint_decode_convert()
1086 if (!isxdigit((int) *ps)) { in php_conv_qprint_decode_convert()
1090 next_char = (next_char << 4) | (*ps >= 'A' ? *ps - 0x37 : *ps - 0x30); in php_conv_qprint_decode_convert()
1092 ps++, icnt--; in php_conv_qprint_decode_convert()
1113 *ps == (unsigned char)inst->lbchars[lb_cnt]) { in php_conv_qprint_decode_convert()
1116 } else if (*ps != '\t' && *ps != ' ') { in php_conv_qprint_decode_convert()
1120 ps++, icnt--; in php_conv_qprint_decode_convert()
1124 if (!inst->lbchars && lb_cnt == 1 && *ps == '\n') { in php_conv_qprint_decode_convert()
1128 ps++, icnt--; /* consume \n */ in php_conv_qprint_decode_convert()
1138 if (*ps == (unsigned char)inst->lbchars[lb_cnt]) { in php_conv_qprint_decode_convert()
1140 ps++, icnt--; in php_conv_qprint_decode_convert()
1165 *in_pp = (const char *)ps; in php_conv_qprint_decode_convert()
1462 const char *ps, size_t buf_len, size_t *consumed, in strfilter_convert_append_bucket() argument
1474 if (ps == NULL) { in strfilter_convert_append_bucket()
1500 if (ps != NULL) { in strfilter_convert_append_bucket()
1506 inst->stub[inst->stub_len++] = *(ps++); in strfilter_convert_append_bucket()
1560 err = ((ps == NULL ? php_conv_convert(inst->cd, NULL, NULL, &pd, &ocnt): in strfilter_convert_append_bucket()
1561 php_conv_convert(inst->cd, &ps, &icnt, &pd, &ocnt))); in strfilter_convert_append_bucket()
1568 if (ps != NULL) { in strfilter_convert_append_bucket()
1573 memcpy(inst->stub, ps, icnt); in strfilter_convert_append_bucket()
1575 ps += icnt; in strfilter_convert_append_bucket()
1614 if (ps == NULL) { in strfilter_convert_append_bucket()