Skip to content

Commit 8ec5b20

Browse files
committed
Document uvuni_to_utf8()
This is deprecated, but we should give enough information to tell people what to do. And this moves it to the public API so that its deprecation gets more prominence.
1 parent 61fa371 commit 8ec5b20

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

embed.fnc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3890,7 +3890,7 @@ Admp |U8 * |uv_to_utf8_msgs|NN U8 *d \
38903890
|UV uv \
38913891
|UV flags \
38923892
|NULLOK HV **msgs
3893-
CDbp |U8 * |uvuni_to_utf8 |NN U8 *d \
3893+
ADbdp |U8 * |uvuni_to_utf8 |NN U8 *d \
38943894
|UV uv
38953895
EXdpx |bool |validate_proto |NN SV *name \
38963896
|NULLOK SV *proto \

mathoms.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,15 @@ Perl_utf8_to_uvuni(pTHX_ const U8 *s, STRLEN *retlen)
142142
return NATIVE_TO_UNI(valid_utf8_to_uvchr(s, retlen));
143143
}
144144

145+
/*
146+
=for apidoc_section $unicode
147+
=for apidoc uvuni_to_utf8
148+
149+
Instead use L<perlapi/uv_to_utf8>.
150+
151+
=cut
152+
*/
153+
145154
U8 *
146155
Perl_uvuni_to_utf8(pTHX_ U8 *d, UV uv)
147156
{

0 commit comments

Comments
 (0)