@@ -562,7 +562,7 @@ static char *php_mb_rfc1867_substring_conf(const zend_encoding *encoding, char *
562
562
if (start [i ] == '\\' && (start [i + 1 ] == '\\' || (quote && start [i + 1 ] == quote ))) {
563
563
* resp ++ = start [++ i ];
564
564
} else {
565
- size_t j = php_mb_mbchar_bytes_ex (start + i , (const mbfl_encoding * )encoding );
565
+ size_t j = php_mb_mbchar_bytes (start + i , (const mbfl_encoding * )encoding );
566
566
567
567
while (j -- > 0 && i < len ) {
568
568
* resp ++ = start [i ++ ];
@@ -594,7 +594,7 @@ static char *php_mb_rfc1867_getword(const zend_encoding *encoding, char **line,
594
594
++ pos ;
595
595
}
596
596
} else {
597
- pos += php_mb_mbchar_bytes_ex (pos , (const mbfl_encoding * )encoding );
597
+ pos += php_mb_mbchar_bytes (pos , (const mbfl_encoding * )encoding );
598
598
599
599
}
600
600
}
@@ -607,7 +607,7 @@ static char *php_mb_rfc1867_getword(const zend_encoding *encoding, char **line,
607
607
res = estrndup (* line , pos - * line );
608
608
609
609
while (* pos == stop ) {
610
- pos += php_mb_mbchar_bytes_ex (pos , (const mbfl_encoding * )encoding );
610
+ pos += php_mb_mbchar_bytes (pos , (const mbfl_encoding * )encoding );
611
611
}
612
612
613
613
* line = pos ;
@@ -4203,8 +4203,7 @@ static int php_mb_encoding_translation(void)
4203
4203
}
4204
4204
/* }}} */
4205
4205
4206
- /* {{{ MBSTRING_API size_t php_mb_mbchar_bytes_ex() */
4207
- MBSTRING_API size_t php_mb_mbchar_bytes_ex (const char * s , const mbfl_encoding * enc )
4206
+ MBSTRING_API size_t php_mb_mbchar_bytes (const char * s , const mbfl_encoding * enc )
4208
4207
{
4209
4208
if (enc ) {
4210
4209
if (enc -> mblen_table ) {
@@ -4219,14 +4218,6 @@ MBSTRING_API size_t php_mb_mbchar_bytes_ex(const char *s, const mbfl_encoding *e
4219
4218
}
4220
4219
return 1 ;
4221
4220
}
4222
- /* }}} */
4223
-
4224
- /* {{{ MBSTRING_API size_t php_mb_mbchar_bytes() */
4225
- MBSTRING_API size_t php_mb_mbchar_bytes (const char * s )
4226
- {
4227
- return php_mb_mbchar_bytes_ex (s , MBSTRG (internal_encoding ));
4228
- }
4229
- /* }}} */
4230
4221
4231
4222
MBSTRING_API char * php_mb_safe_strrchr (const char * s , unsigned int c , size_t nbytes , const mbfl_encoding * enc )
4232
4223
{
@@ -4241,7 +4232,7 @@ MBSTRING_API char *php_mb_safe_strrchr(const char *s, unsigned int c, size_t nby
4241
4232
if ((unsigned char )* p == (unsigned char )c ) {
4242
4233
last = (char * )p ;
4243
4234
}
4244
- nb = php_mb_mbchar_bytes_ex (p , enc );
4235
+ nb = php_mb_mbchar_bytes (p , enc );
4245
4236
if (nb == 0 ) {
4246
4237
return NULL ; /* something is going wrong! */
4247
4238
}
@@ -4256,7 +4247,7 @@ MBSTRING_API char *php_mb_safe_strrchr(const char *s, unsigned int c, size_t nby
4256
4247
if ((unsigned char )* p == (unsigned char )c ) {
4257
4248
last = (char * )p ;
4258
4249
}
4259
- nbytes_char = php_mb_mbchar_bytes_ex (p , enc );
4250
+ nbytes_char = php_mb_mbchar_bytes (p , enc );
4260
4251
if (bcnt < nbytes_char ) {
4261
4252
return NULL ;
4262
4253
}
0 commit comments