develooper Front page | perl.perl5.changes | Postings from August 2003

Change 20751: utf8::is_utf8() wasn't there in 5.8.0.

From:
Jarkko Hietaniemi
Date:
August 17, 2003 23:30
Subject:
Change 20751: utf8::is_utf8() wasn't there in 5.8.0.
Message ID:
200308180630.h7I6U5dw011894@smtp3.ActiveState.com
Change 20751 by jhi@kosh on 2003/08/18 05:09:34

	utf8::is_utf8() wasn't there in 5.8.0.

Affected files ...

... //depot/perl/lib/utf8.pm#34 edit

Differences ...

==== //depot/perl/lib/utf8.pm#34 (text) ====
Index: perl/lib/utf8.pm
--- perl/lib/utf8.pm#33~20735~	Sat Aug 16 12:39:39 2003
+++ perl/lib/utf8.pm	Sun Aug 17 22:09:34 2003
@@ -37,7 +37,7 @@
     utf8::encode($string);
     utf8::decode($string);
 
-    $flag = utf8::is_utf8(STRING);
+    $flag = utf8::is_utf8(STRING); # since Perl 5.8.1
     $flag = utf8::valid(STRING);
 
 =head1 DESCRIPTION
@@ -126,7 +126,8 @@
 
 =item * $flag = utf8::is_utf8(STRING)
 
-Test whether STRING is in UTF-8.  Same as Encode::is_utf8().
+(Since Perl 5.8.1)  Test whether STRING is in UTF-8.  Functionally
+the same as Encode::is_utf8().
 
 =item * $flag = utf8::valid(STRING)
 
@@ -144,8 +145,8 @@
 functions C<sv_utf8_upgrade>, C<sv_utf8_downgrade>, C<sv_utf8_encode>,
 and C<sv_utf8_decode>, which are wrapped by the Perl functions
 C<utf8::upgrade>, C<utf8::downgrade>, C<utf8::encode> and
-C<utf8::decode>.  Note that in the Perl 5.8.0 implementation the
-functions utf8::is_utf8, utf8::valid, utf8::encode, utf8::decode,
+C<utf8::decode>.  Note that in the Perl 5.8.0 and 5.8.1 implementation
+the functions utf8::is_utf8, utf8::valid, utf8::encode, utf8::decode,
 utf8::upgrade, and utf8::downgrade are always available, without a
 C<require utf8> statement-- this may change in future releases.
 
@@ -164,6 +165,6 @@
 
 =head1 SEE ALSO
 
-L<perlunicode>, L<bytes>
+L<perluniintro>, L<perlunicode>, L<bytes>
 
 =cut
End of Patch.




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About