summaryrefslogtreecommitdiff
path: root/lib/utf8.pm
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-05-24 11:49:31 -0600
committerKarl Williamson <public@khwilliamson.com>2012-05-24 22:48:43 -0600
commit9a54da5c9b834e6244f5695a8d2bf57e89d4fa90 (patch)
treed3fc7ced5d942693e30b6664fa2339f5f9390159 /lib/utf8.pm
parent426fe37ad3721a6d99e048a342d26862d6ea8fca (diff)
downloadperl-9a54da5c9b834e6244f5695a8d2bf57e89d4fa90.tar.gz
utf8.pm: pod: grammar, clarify
Diffstat (limited to 'lib/utf8.pm')
-rw-r--r--lib/utf8.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/utf8.pm b/lib/utf8.pm
index b59eabfbd7..1d6992ccf0 100644
--- a/lib/utf8.pm
+++ b/lib/utf8.pm
@@ -2,7 +2,7 @@ package utf8;
$utf8::hint_bits = 0x00800000;
-our $VERSION = '1.09';
+our $VERSION = '1.10';
sub import {
$^H |= $utf8::hint_bits;
@@ -170,14 +170,14 @@ L<Encode>.
=item * $flag = utf8::is_utf8(STRING)
-(Since Perl 5.8.1) Test whether STRING is in UTF-8 internally.
+(Since Perl 5.8.1) Test whether STRING is encoded internally in UTF-8.
Functionally the same as Encode::is_utf8().
=item * $flag = utf8::valid(STRING)
[INTERNAL] Test whether STRING is in a consistent state regarding
-UTF-8. Will return true is well-formed UTF-8 and has the UTF-8 flag
-on B<or> if string is held as bytes (both these states are 'consistent').
+UTF-8. Will return true if it is well-formed UTF-8 and has the UTF-8 flag
+on B<or> if STRING is held as bytes (both these states are 'consistent').
Main reason for this routine is to allow Perl's testsuite to check
that operations have left strings in a consistent state. You most
probably want to use utf8::is_utf8() instead.