Lines Matching refs:ps
334 register unsigned char *ps, *pd; in php_conv_base64_encode_convert() local
343 ps = (unsigned char *)(*in_pp); in php_conv_base64_encode_convert()
365 *(pd++) = b64_tbl_enc[(unsigned char)(inst->erem[0] << 4) | (ps[0] >> 4)]; in php_conv_base64_encode_convert()
366 *(pd++) = b64_tbl_enc[(unsigned char)(ps[0] << 2) | (ps[1] >> 6)]; in php_conv_base64_encode_convert()
367 *(pd++) = b64_tbl_enc[ps[1]]; in php_conv_base64_encode_convert()
369 ps += 2; in php_conv_base64_encode_convert()
393 *(pd++) = b64_tbl_enc[(unsigned char)(inst->erem[1] << 2) | (ps[0] >> 6)]; in php_conv_base64_encode_convert()
394 *(pd++) = b64_tbl_enc[ps[0]]; in php_conv_base64_encode_convert()
396 ps += 1; in php_conv_base64_encode_convert()
419 *(pd++) = b64_tbl_enc[ps[0] >> 2]; in php_conv_base64_encode_convert()
420 *(pd++) = b64_tbl_enc[(unsigned char)(ps[0] << 4) | (ps[1] >> 4)]; in php_conv_base64_encode_convert()
421 *(pd++) = b64_tbl_enc[(unsigned char)(ps[1] << 2) | (ps[2] >> 6)]; in php_conv_base64_encode_convert()
422 *(pd++) = b64_tbl_enc[ps[2]]; in php_conv_base64_encode_convert()
424 ps += 3; in php_conv_base64_encode_convert()
430 inst->erem[inst->erem_len++] = *(ps++); in php_conv_base64_encode_convert()
434 *in_pp = (const char *)ps; in php_conv_base64_encode_convert()
501 unsigned char *ps, *pd; in php_conv_base64_decode_convert() local
516 ps = (unsigned char *)*in_pp; in php_conv_base64_decode_convert()
546 i = b64_tbl_dec[(unsigned int)*(ps++)]; in php_conv_base64_decode_convert()
597 *in_pp = (const char *)ps; in php_conv_base64_decode_convert()
636 #define NEXT_CHAR(ps, icnt, lb_ptr, lb_cnt, lbchars) \ argument
637 ((lb_ptr) < (lb_cnt) ? (lbchars)[(lb_ptr)] : *(ps))
639 #define CONSUME_CHAR(ps, icnt, lb_ptr, lb_cnt) \ argument
645 (ps)++; \
651 unsigned char *ps, *pd; in php_conv_qprint_encode_convert() local
670 ps = (unsigned char *)(*in_pp); in php_conv_qprint_encode_convert()
681 if (icnt > 0 && *ps == inst->lbchars[lb_cnt]) { in php_conv_qprint_encode_convert()
700 ps++, icnt--; in php_conv_qprint_encode_convert()
709 c = NEXT_CHAR(ps, icnt, lb_ptr, lb_cnt, inst->lbchars); in php_conv_qprint_encode_convert()
741 ps2 = ps; in php_conv_qprint_encode_convert()
768 CONSUME_CHAR(ps, icnt, lb_ptr, lb_cnt); in php_conv_qprint_encode_convert()
793 CONSUME_CHAR(ps, icnt, lb_ptr, lb_cnt); in php_conv_qprint_encode_convert()
821 CONSUME_CHAR(ps, icnt, lb_ptr, lb_cnt); in php_conv_qprint_encode_convert()
825 *in_pp = (const char *)ps; in php_conv_qprint_encode_convert()
886 unsigned char *ps, *pd; in php_conv_qprint_decode_convert() local
901 ps = (unsigned char *)(*in_pp); in php_conv_qprint_decode_convert()
914 if (*ps == '=') { in php_conv_qprint_decode_convert()
921 *(pd++) = *ps; in php_conv_qprint_decode_convert()
924 ps++, icnt--; in php_conv_qprint_decode_convert()
931 if (*ps == ' ' || *ps == '\t') { in php_conv_qprint_decode_convert()
933 ps++, icnt--; in php_conv_qprint_decode_convert()
935 } else if (!inst->lbchars && lb_cnt == 0 && *ps == '\r') { in php_conv_qprint_decode_convert()
939 ps++, icnt--; in php_conv_qprint_decode_convert()
941 } else if (!inst->lbchars && lb_cnt == 0 && *ps == '\n') { in php_conv_qprint_decode_convert()
945 ps++, icnt--; in php_conv_qprint_decode_convert()
948 *ps == (unsigned char)inst->lbchars[lb_cnt]) { in php_conv_qprint_decode_convert()
951 ps++, icnt--; in php_conv_qprint_decode_convert()
961 if (!isxdigit((int) *ps)) { in php_conv_qprint_decode_convert()
965 next_char = (next_char << 4) | (*ps >= 'A' ? *ps - 0x37 : *ps - 0x30); in php_conv_qprint_decode_convert()
967 ps++, icnt--; in php_conv_qprint_decode_convert()
988 *ps == (unsigned char)inst->lbchars[lb_cnt]) { in php_conv_qprint_decode_convert()
991 } else if (*ps != '\t' && *ps != ' ') { in php_conv_qprint_decode_convert()
995 ps++, icnt--; in php_conv_qprint_decode_convert()
999 if (!inst->lbchars && lb_cnt == 1 && *ps == '\n') { in php_conv_qprint_decode_convert()
1003 ps++, icnt--; /* consume \n */ in php_conv_qprint_decode_convert()
1013 if (*ps == (unsigned char)inst->lbchars[lb_cnt]) { in php_conv_qprint_decode_convert()
1015 ps++, icnt--; in php_conv_qprint_decode_convert()
1040 *in_pp = (const char *)ps; in php_conv_qprint_decode_convert()
1337 const char *ps, size_t buf_len, size_t *consumed, in strfilter_convert_append_bucket() argument
1349 if (ps == NULL) { in strfilter_convert_append_bucket()
1375 if (ps != NULL) { in strfilter_convert_append_bucket()
1381 inst->stub[inst->stub_len++] = *(ps++); in strfilter_convert_append_bucket()
1435 err = ((ps == NULL ? php_conv_convert(inst->cd, NULL, NULL, &pd, &ocnt): in strfilter_convert_append_bucket()
1436 php_conv_convert(inst->cd, &ps, &icnt, &pd, &ocnt))); in strfilter_convert_append_bucket()
1443 if (ps != NULL) { in strfilter_convert_append_bucket()
1448 memcpy(inst->stub, ps, icnt); in strfilter_convert_append_bucket()
1450 ps += icnt; in strfilter_convert_append_bucket()
1489 if (ps == NULL) { in strfilter_convert_append_bucket()