mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Rename php_mb_mbchar_bytes_ex to php_mb_mbchar_bytes
...And remove the original php_mb_mbchar_bytes, which was not being used.
This commit is contained in:
parent
774cd960ab
commit
d3f56e5ac9
3 changed files with 11 additions and 21 deletions
|
@ -721,7 +721,7 @@ static inline void mb_regex_substitute(
|
|||
eos = replace + replace_len;
|
||||
|
||||
while (p < eos) {
|
||||
clen = (int) php_mb_mbchar_bytes_ex(p, enc);
|
||||
clen = (int) php_mb_mbchar_bytes(p, enc);
|
||||
if (clen != 1 || p == eos || p[0] != '\\') {
|
||||
/* skip anything that's not an ascii backslash */
|
||||
smart_str_appendl(pbuf, p, clen);
|
||||
|
@ -729,7 +729,7 @@ static inline void mb_regex_substitute(
|
|||
continue;
|
||||
}
|
||||
sp = p; /* save position */
|
||||
clen = (int) php_mb_mbchar_bytes_ex(++p, enc);
|
||||
clen = (int) php_mb_mbchar_bytes(++p, enc);
|
||||
if (clen != 1 || p == eos) {
|
||||
/* skip backslash followed by multibyte char */
|
||||
smart_str_appendl(pbuf, sp, p - sp);
|
||||
|
@ -759,7 +759,7 @@ static inline void mb_regex_substitute(
|
|||
break;
|
||||
case 'k':
|
||||
{
|
||||
clen = (int) php_mb_mbchar_bytes_ex(++p, enc);
|
||||
clen = (int) php_mb_mbchar_bytes(++p, enc);
|
||||
if (clen != 1 || p == eos || (p[0] != '<' && p[0] != '\'')) {
|
||||
/* not a backref delimiter */
|
||||
p += clen;
|
||||
|
@ -772,7 +772,7 @@ static inline void mb_regex_substitute(
|
|||
char maybe_num = 1;
|
||||
name_end = name = p + 1;
|
||||
while (name_end < eos) {
|
||||
clen = (int) php_mb_mbchar_bytes_ex(name_end, enc);
|
||||
clen = (int) php_mb_mbchar_bytes(name_end, enc);
|
||||
if (clen != 1) {
|
||||
name_end += clen;
|
||||
maybe_num = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue