Skip to content

Commit d22f3fb

Browse files
committed
find_by_class: Use utf8_to-uv_or_die not utf8_to_uvchr_buf
1 parent 4c15e29 commit d22f3fb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

regexec.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2409,7 +2409,7 @@ S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s,
24092409
REXEC_FBC_UTF8_CLASS_SCAN(
24102410
( (U8) NATIVE_UTF8_TO_I8(*s) >= ANYOF_FLAGS(c)
24112411
&& _invlist_contains_cp(anyofh_list,
2412-
utf8_to_uvchr_buf((U8 *) s,
2412+
utf8_to_uv_or_die((U8 *) s,
24132413
(U8 *) strend,
24142414
NULL))));
24152415
break;
@@ -2423,7 +2423,7 @@ S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s,
24232423
anyofh_list = GET_ANYOFH_INVLIST(prog, c);
24242424
REXEC_FBC_FIND_NEXT_UTF8_BYTE_SCAN(first_byte,
24252425
_invlist_contains_cp(anyofh_list,
2426-
utf8_to_uvchr_buf((U8 *) s,
2426+
utf8_to_uv_or_die((U8 *) s,
24272427
(U8 *) strend,
24282428
NULL)));
24292429
}
@@ -2451,7 +2451,7 @@ S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s,
24512451
LOWEST_ANYOF_HRx_BYTE(ANYOF_FLAGS(c)),
24522452
HIGHEST_ANYOF_HRx_BYTE(ANYOF_FLAGS(c)))
24532453
&& _invlist_contains_cp(anyofh_list,
2454-
utf8_to_uvchr_buf((U8 *) s,
2454+
utf8_to_uv_or_die((U8 *) s,
24552455
(U8 *) strend,
24562456
NULL))));
24572457
break;
@@ -2464,7 +2464,7 @@ S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s,
24642464
/* Note FLAGS is the string length in this regnode */
24652465
((struct regnode_anyofhs *) c)->string + FLAGS(c),
24662466
_invlist_contains_cp(anyofh_list,
2467-
utf8_to_uvchr_buf((U8 *) s,
2467+
utf8_to_uv_or_die((U8 *) s,
24682468
(U8 *) strend,
24692469
NULL)));
24702470
break;
@@ -2479,7 +2479,7 @@ S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s,
24792479
case ANYOFR_t8_p8:
24802480
REXEC_FBC_UTF8_CLASS_SCAN(
24812481
( NATIVE_UTF8_TO_I8(*s) >= ANYOF_FLAGS(c)
2482-
&& withinCOUNT(utf8_to_uvchr_buf((U8 *) s,
2482+
&& withinCOUNT(utf8_to_uv_or_die((U8 *) s,
24832483
(U8 *) strend,
24842484
NULL),
24852485
ANYOFRbase(c), ANYOFRdelta(c))));
@@ -2497,7 +2497,7 @@ S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s,
24972497
U8 first_byte = FLAGS(c);
24982498

24992499
REXEC_FBC_FIND_NEXT_UTF8_BYTE_SCAN(first_byte,
2500-
withinCOUNT(utf8_to_uvchr_buf((U8 *) s,
2500+
withinCOUNT(utf8_to_uv_or_die((U8 *) s,
25012501
(U8 *) strend,
25022502
NULL),
25032503
ANYOFRbase(c), ANYOFRdelta(c)));
@@ -3213,7 +3213,7 @@ S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s,
32133213
REXEC_FBC_UTF8_CLASS_SCAN(
32143214
to_complement ^ cBOOL(_invlist_contains_cp(
32153215
PL_XPosix_ptrs[classnum],
3216-
utf8_to_uvchr_buf((U8 *) s,
3216+
utf8_to_uv_or_die((U8 *) s,
32173217
(U8 *) strend,
32183218
NULL))));
32193219
break;

0 commit comments

Comments
 (0)