Skip to content

Commit 82a05dc

Browse files
committed
perlapi: Fix up to account for new utf8_to_uv functions
1 parent f3f0e7e commit 82a05dc

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

inline.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ Perl_utf8_to_bytes_overwrite(pTHX_ U8 **s_ptr, STRLEN *lenp)
12991299

13001300
/*
13011301
=for apidoc valid_utf8_to_uvchr
1302-
Like C<L<perlapi/utf8_to_uvchr_buf>>, but should only be called when it is
1302+
Like C<L<perlapi/utf8_to_uv>>, but should only be called when it is
13031303
known that the next character in the input UTF-8 string C<s> is well-formed
13041304
(I<e.g.>, it passes C<L<perlapi/isUTF8_CHAR>>. Surrogates, non-character code
13051305
points, and non-Unicode code points are allowed.

mathoms.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,15 @@ Perl_uvuni_to_utf8(pTHX_ U8 *d, UV uv)
181181
=for apidoc_section $unicode
182182
=for apidoc utf8n_to_uvuni
183183
184-
Instead use L<perlapi/utf8_to_uvchr_buf>, or rarely, L<perlapi/utf8n_to_uvchr>.
184+
Instead use L<perlapi/utf8_to_uv>, or rarely, L<perlapi/utf8_to_uv_flags>.
185185
186186
This function was useful for code that wanted to handle both EBCDIC and
187187
ASCII platforms with Unicode properties, but starting in Perl v5.20, the
188188
distinctions between the platforms have mostly been made invisible to most
189189
code, so this function is quite unlikely to be what you want. If you do need
190-
this precise functionality, use instead
191-
C<L<NATIVE_TO_UNI(utf8_to_uvchr_buf(...))|perlapi/utf8_to_uvchr_buf>>
192-
or C<L<NATIVE_TO_UNI(utf8n_to_uvchr(...))|perlapi/utf8n_to_uvchr>>.
190+
this precise functionality, use instead L<perlapi/C<utf8_to_uv>> or
191+
L<perlapi/C<utf8_to_uv_flags>> to calculate the native code point, and then
192+
convert to Unicode using L<perlapi/C<NATIVE_TO_UNI>>.
193193
194194
=cut
195195
*/

regcharclass.h

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

regen/regcharclass.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ =head1 DESCRIPTION
9393
These forms should not be used I<except> on small sets of mostly widely
9494
separated code points; otherwise the code generated is inefficient. For these
9595
cases, it is best to use the C<is_> forms, and then find the code point with
96-
C<utf8_to_uvchr_buf>(). This program can fail with a "deep recursion"
96+
L<perlapi/C<utf8_to_uv>>. This program can fail with a "deep recursion"
9797
message on the worst of the inappropriate sets. Examine the generated macro
9898
to see if it is acceptable.
9999

0 commit comments

Comments
 (0)