Skip to content

Commit c15c246

Browse files
committed
Use favored name uv_to_utf8
This replaces its synonym with the more modern name. There should be no difference in the generated assembly language.
1 parent 58edeb0 commit c15c246

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

perl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3706,7 +3706,7 @@ Perl_moreswitches(pTHX_ const char *s)
37063706
}
37073707
PL_rs = newSV((STRLEN)(UVCHR_SKIP(rschar) + 1));
37083708
tmps = (U8*)SvPVCLEAR_FRESH(PL_rs);
3709-
uvchr_to_utf8(tmps, rschar);
3709+
uv_to_utf8(tmps, rschar);
37103710
SvCUR_set(PL_rs, UVCHR_SKIP(rschar));
37113711
SvUTF8_on(PL_rs);
37123712
}

utf8.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3437,7 +3437,7 @@ Perl_utf16_to_utf8_base(pTHX_ U8* p, U8* d, Size_t bytelen, Size_t *newlen,
34373437
}
34383438

34393439
/* Here, 'uv' is the real U32 we want to find the UTF-8 of */
3440-
d = uvchr_to_utf8(d, uv);
3440+
d = uv_to_utf8(d, uv);
34413441
}
34423442

34433443
*newlen = d - dstart;
@@ -3835,7 +3835,7 @@ Perl__to_uni_fold_flags(pTHX_ UV c, U8* p, STRLEN *lenp, U8 flags)
38353835
U8 utf8_c[UTF8_MAXBYTES + 1];
38363836

38373837
needs_full_generality:
3838-
uvchr_to_utf8(utf8_c, c);
3838+
uv_to_utf8(utf8_c, c);
38393839
return _toFOLD_utf8_flags(utf8_c, utf8_c + C_ARRAY_LENGTH(utf8_c),
38403840
p, lenp, flags);
38413841
}
@@ -4070,10 +4070,10 @@ S__to_utf8_case(pTHX_ const UV original, const U8 *p,
40704070
U8 * d = ustrp;
40714071
Size_t i;
40724072

4073-
d = uvchr_to_utf8(d, first);
4073+
d = uv_to_utf8(d, first);
40744074

40754075
for (i = 0; i < remaining_count; i++) {
4076-
d = uvchr_to_utf8(d, remaining_list[i]);
4076+
d = uv_to_utf8(d, remaining_list[i]);
40774077
}
40784078

40794079
*d = '\0';

0 commit comments

Comments
 (0)