This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlunicode: Discourage use of is_utf8_char()
authorKarl Williamson <public@khwilliamson.com>
Thu, 5 Jan 2012 22:42:08 +0000 (15:42 -0700)
committerKarl Williamson <public@khwilliamson.com>
Fri, 13 Jan 2012 16:58:38 +0000 (09:58 -0700)
pod/perlunicode.pod

index b50ae93..4f7fb85 100644 (file)
@@ -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 *