summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-02-28 09:40:26 -0700
committerYves Orton <demerphq@gmail.com>2022-03-02 03:43:22 +0100
commit593d5c78d0c51c335bac32e4648b66511c89fb45 (patch)
tree1d2e7498a41099fce731fe9432521cca00035814 /sv.c
parentae005663afa8878139a438594b19b16615e4f5df (diff)
downloadperl-593d5c78d0c51c335bac32e4648b66511c89fb45.tar.gz
Make sv_len_utf8_nomg() public
The get-magic version of this has long been available, but not the no magic. It turns out that ppport.h does make both available, so any module using that would be able to use it anyway, without even noticing that it isn't supported by core. I see no reason for this to not be public; the original commit message did not indicate such a reason, and it is effectively public anyway via ppport.h. (This is the only non-publically accessible function that ppport.h furnishes; I'm working on a patch to have it warn of future instances creeping in.)
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index fb206a7347..0a92c923f6 100644
--- a/sv.c
+++ b/sv.c
@@ -7451,9 +7451,12 @@ Perl_sv_len(pTHX_ SV *const sv)
/*
=for apidoc sv_len_utf8
+=for apidoc_item sv_len_utf8_nomg
-Returns the number of characters in the string in an SV, counting wide
-UTF-8 bytes as a single character. Handles magic and type coercion.
+These return the number of characters in the string in an SV, counting wide
+UTF-8 bytes as a single character. Both handle type coercion.
+They differ only in that C<sv_len_utf8> performs 'get' magic;
+C<sv_len_utf8_nomg> skips any magic.
=cut
*/