This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fef6a0
)
perlunicode: Discourage use of is_utf8_char()
author
Karl Williamson
<public@khwilliamson.com>
Thu, 5 Jan 2012 22:42:08 +0000
(15:42 -0700)
committer
Karl Williamson
<public@khwilliamson.com>
Fri, 13 Jan 2012 16:58:38 +0000
(09:58 -0700)
pod/perlunicode.pod
patch
|
blob
|
blame
|
history
diff --git
a/pod/perlunicode.pod
b/pod/perlunicode.pod
index
b50ae93
..
4f7fb85
100644
(file)
--- a/
pod/perlunicode.pod
+++ b/
pod/perlunicode.pod
@@
-1523,13
+1523,14
@@
designed to be a one-way street).
=item *
-C<is_utf8_
char(s)> returns true if the pointer points to a valid UTF-8
-
character
.
+C<is_utf8_
string(buf, len)> returns true if C<len> bytes of the buffer
+
are valid UTF-8
.
=item *
-C<is_utf8_string(buf, len)> returns true if C<len> bytes of the buffer
-are valid UTF-8.
+C<is_utf8_char(s)> returns true if the pointer points to a valid UTF-8
+character. However, this function should not be used because of
+security concerns. Instead, use C<is_utf8_string()>.
=item *