Lines Matching refs:p

371 	const char *p;  in _php_mb_regex_name2mbctype()  local
379 for (p = mapping->names; *p != '\0'; p += (strlen(p) + 1)) { in _php_mb_regex_name2mbctype()
380 if (strcasecmp(p, pname) == 0) { in _php_mb_regex_name2mbctype()
493 char *p = str; in _php_mb_regex_get_option_string() local
499 *(p++) = 'i'; in _php_mb_regex_get_option_string()
507 *(p++) = 'x'; in _php_mb_regex_get_option_string()
516 *(p++) = 'p'; in _php_mb_regex_get_option_string()
523 *(p++) = 'm'; in _php_mb_regex_get_option_string()
531 *(p++) = 's'; in _php_mb_regex_get_option_string()
539 *(p++) = 'l'; in _php_mb_regex_get_option_string()
546 *(p++) = 'n'; in _php_mb_regex_get_option_string()
574 *(p++) = c; in _php_mb_regex_get_option_string()
582 *(p++) = '\0'; in _php_mb_regex_get_option_string()
716 char *p, *sp, *eos; in mb_regex_substitute() local
720 p = replace; in mb_regex_substitute()
723 while (p < eos) { in mb_regex_substitute()
724 clen = (int) php_mb_mbchar_bytes(p, enc); in mb_regex_substitute()
725 if (clen != 1 || p == eos || p[0] != '\\') { in mb_regex_substitute()
727 smart_str_appendl(pbuf, p, clen); in mb_regex_substitute()
728 p += clen; in mb_regex_substitute()
731 sp = p; /* save position */ in mb_regex_substitute()
732 clen = (int) php_mb_mbchar_bytes(++p, enc); in mb_regex_substitute()
733 if (clen != 1 || p == eos) { in mb_regex_substitute()
735 smart_str_appendl(pbuf, sp, p - sp); in mb_regex_substitute()
739 switch (p[0]) { in mb_regex_substitute()
742 p++; in mb_regex_substitute()
753 p++; in mb_regex_substitute()
754 smart_str_appendl(pbuf, sp, p - sp); in mb_regex_substitute()
757 no = p[0] - '0'; in mb_regex_substitute()
758 p++; in mb_regex_substitute()
762 clen = (int) php_mb_mbchar_bytes(++p, enc); in mb_regex_substitute()
763 if (clen != 1 || p == eos || (p[0] != '<' && p[0] != '\'')) { in mb_regex_substitute()
765 p += clen; in mb_regex_substitute()
766 smart_str_appendl(pbuf, sp, p - sp); in mb_regex_substitute()
770 char delim = p[0] == '<' ? '>' : '\''; in mb_regex_substitute()
773 name_end = name = p + 1; in mb_regex_substitute()
785 p = name_end + 1; in mb_regex_substitute()
788 smart_str_appendl(pbuf, sp, p - sp); in mb_regex_substitute()
795 smart_str_appendl(pbuf, sp, p - sp); in mb_regex_substitute()
816 smart_str_appendl(pbuf, sp, p - sp); in mb_regex_substitute()
821 smart_str_appendl(pbuf, sp, p - sp); in mb_regex_substitute()
829 if (p < eos) { in mb_regex_substitute()
830 smart_str_appendl(pbuf, p, eos - p); in mb_regex_substitute()