Change 14054 by jhi@alpha on 2002/01/04 04:04:05
Document the U+0085, U+2028, and U+2029.
Affected files ...
.... //depot/perl/pod/perlre.pod#72 edit
.... //depot/perl/pod/perlretut.pod#26 edit
Differences ...
==== //depot/perl/pod/perlre.pod#72 (text) ====
Index: perl/pod/perlre.pod
--- perl/pod/perlre.pod.~1~ Thu Jan 3 21:15:05 2002
+++ perl/pod/perlre.pod Thu Jan 3 21:15:05 2002
@@ -188,14 +188,18 @@
NOTE: breaks up characters into their UTF-8 bytes,
so you may end up with malformed pieces of UTF-8.
-A C<\w> matches a single alphanumeric character or C<_>, not a whole word.
-Use C<\w+> to match a string of Perl-identifier characters (which isn't
-the same as matching an English word). If C<use locale> is in effect, the
-list of alphabetic characters generated by C<\w> is taken from the
-current locale. See L<perllocale>. You may use C<\w>, C<\W>, C<\s>, C<\S>,
+A C<\w> matches a single alphanumeric character (an alphabetic
+character, or a decimal digit) or C<_>, not a whole word. Use C<\w+>
+to match a string of Perl-identifier characters (which isn't the same
+as matching an English word). If C<use locale> is in effect, the list
+of alphabetic characters generated by C<\w> is taken from the current
+locale. See L<perllocale>. You may use C<\w>, C<\W>, C<\s>, C<\S>,
C<\d>, and C<\D> within character classes, but if you try to use them
-as endpoints of a range, that's not a range, the "-" is understood literally.
-See L<perlunicode> for details about C<\pP>, C<\PP>, and C<\X>.
+as endpoints of a range, that's not a range, the "-" is understood
+literally. If Unicode is in effect, C<\s> matches also "\x{85}",
+"\x{2028}, and "\x{2029}", see L<perlunicode> for more details about
+C<\pP>, C<\PP>, and C<\X>, and L<perluniintro> about Unicode in
+general.
The POSIX character class syntax
@@ -228,11 +232,11 @@
=item [2]
Not exactly equivalent to C<\s> since the C<[[:space:]]> includes
-also the (very rare) `vertical tabulator', \ck", chr(11).
+also the (very rare) `vertical tabulator', "\ck", chr(11).
=item [3]
-A Perl extension.
+A Perl extension, see above.
=back
==== //depot/perl/pod/perlretut.pod#26 (text) ====
Index: perl/pod/perlretut.pod
--- perl/pod/perlretut.pod.~1~ Thu Jan 3 21:15:05 2002
+++ perl/pod/perlretut.pod Thu Jan 3 21:15:05 2002
@@ -1738,7 +1738,7 @@
IsPrint /^([LMNPS]|Co|Zs)/
IsPunct /^P/
IsSpace /^Z/ || ($code =~ /^(0009|000A|000B|000C|000D)$/
- IsSpacePerl /^Z/ || ($code =~ /^(0009|000A|000C|000D)$/
+ IsSpacePerl /^Z/ || ($code =~ /^(0009|000A|000C|000D|0085|2028|2029)$/
IsUpper /^L[ut]/
IsWord /^[LMN]/ || $code eq "005F"
IsXDigit $code =~ /^00(3[0-9]|[46][1-6])$/
End of Patch.