diff options
author | Karl Williamson <khw@cpan.org> | 2020-08-29 13:45:48 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-09-04 16:55:31 -0600 |
commit | 8505db87404436956f86e54885cacd73840801c0 (patch) | |
tree | 0d8d4792685a731f976d44541ac36d875ae0ad67 /utf8.c | |
parent | c286f3325e05c89b2d709311ae16b610d425c65d (diff) | |
download | perl-8505db87404436956f86e54885cacd73840801c0.tar.gz |
Make bytes_from_utf8_loc() internal
And add it to perlintern, and fix grammar in its pod
Diffstat (limited to 'utf8.c')
-rw-r--r-- | utf8.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -2541,11 +2541,6 @@ Perl_bytes_from_utf8(pTHX_ const U8 *s, STRLEN *lenp, bool *is_utf8p) } /* -=for comment -skip apidoc -This is not currently externally documented because we don't want people to use -it for now. XXX Perhaps that is too paranoid, and it should be documented? - =for apidoc bytes_from_utf8_loc Like C<L</bytes_from_utf8>()>, but takes an extra parameter, a pointer to where @@ -2564,7 +2559,7 @@ C<"s">. C<*lenp> is set to its length, not including the terminating C<NUL>. If the entire input string was converted, C<*is_utf8p> is set to a FALSE value, and C<*first_non_downgradable> is set to C<NULL>. -Otherwise, C<*first_non_downgradable> set to point to the first byte of the +Otherwise, C<*first_non_downgradable> is set to point to the first byte of the first character in the original string that wasn't converted. C<*is_utf8p> is unchanged. Note that the new string may have length 0. |