diff options
author | Karl Williamson <khw@khw-desktop.(none)> | 2009-12-24 22:54:58 -0700 |
---|---|---|
committer | Abigail <abigail@abigail.be> | 2009-12-25 10:07:41 +0100 |
commit | e1b711dac329baf9cf4ea3e4628e6c713e24b342 (patch) | |
tree | b12ce1b41c2d6c0582296ddad541efd2ae3f71e2 /pod/perlfunc.pod | |
parent | 27bca3226281a592aed848b7e68ea50f27381dac (diff) | |
download | perl-e1b711dac329baf9cf4ea3e4628e6c713e24b342.tar.gz |
Update .pods
Signed-off-by: Abigail <abigail@abigail.be>
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r-- | pod/perlfunc.pod | 82 |
1 files changed, 69 insertions, 13 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 188647c5ea..25e28e1b39 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -2688,12 +2688,61 @@ X<lc> X<lowercase> =item lc Returns a lowercased version of EXPR. This is the internal function -implementing the C<\L> escape in double-quoted strings. Respects -current LC_CTYPE locale if C<use locale> in force. See L<perllocale> -and L<perlunicode> for more details about locale and Unicode support. +implementing the C<\L> escape in double-quoted strings. If EXPR is omitted, uses C<$_>. +What gets returned depends on several factors: + +=over + +=item If C<use bytes> is in effect: + +=over + +=item On EBCDIC platforms + +The results are what the C language system call C<tolower()> returns. + +=item On ASCII platforms + +The results follow ASCII semantics. Only characters C<A-Z> change, to C<a-z> +respectively. + +=back + +=item Otherwise, If EXPR has the UTF8 flag set + +If the current package has a subroutine named C<ToLower>, it will be used to +change the case (See L<perlunicode/User-Defined Case Mappings>.) +Otherwise Unicode semantics are used for the case change. + +=item Otherwise, if C<use locale> is in effect + +Respects current LC_CTYPE locale. See L<perllocale>. + +=item Otherwise, if C<use feature 'unicode_strings'> is in effect: + +Unicode semantics are used for the case change. Any subroutine named +C<ToLower> will not be used. + +=item Otherwise: + +=over + +=item On EBCDIC platforms + +The results are what the C language system call C<tolower()> returns. + +=item On ASCII platforms + +ASCII semantics are used for the case change. The lowercase of any character +outside the ASCII range is the character itself. + +=back + +=back + =item lcfirst EXPR X<lcfirst> X<lowercase> @@ -2701,12 +2750,13 @@ X<lcfirst> X<lowercase> Returns the value of EXPR with the first character lowercased. This is the internal function implementing the C<\l> escape in -double-quoted strings. Respects current LC_CTYPE locale if C<use -locale> in force. See L<perllocale> and L<perlunicode> for more -details about locale and Unicode support. +double-quoted strings. If EXPR is omitted, uses C<$_>. +This function behaves the same way under various pragma, such as in a locale, +as L</lc> does. + =item length EXPR X<length> X<size> @@ -3579,6 +3629,8 @@ like its machine-level representation. For example, on 32-bit machines an integer may be represented by a sequence of 4 bytes that will be converted to a sequence of 4 characters. +See L<perlpacktut> for an introduction to this function. + The TEMPLATE is a sequence of characters that give the order and type of values, as follows: @@ -6770,14 +6822,15 @@ X<uc> X<uppercase> X<toupper> =item uc Returns an uppercased version of EXPR. This is the internal function -implementing the C<\U> escape in double-quoted strings. Respects -current LC_CTYPE locale if C<use locale> in force. See L<perllocale> -and L<perlunicode> for more details about locale and Unicode support. +implementing the C<\U> escape in double-quoted strings. It does not attempt to do titlecase mapping on initial letters. See C<ucfirst> for that. If EXPR is omitted, uses C<$_>. +This function behaves the same way under various pragma, such as in a locale, +as L</lc> does. + =item ucfirst EXPR X<ucfirst> X<uppercase> @@ -6785,12 +6838,13 @@ X<ucfirst> X<uppercase> Returns the value of EXPR with the first character in uppercase (titlecase in Unicode). This is the internal function implementing -the C<\u> escape in double-quoted strings. Respects current LC_CTYPE -locale if C<use locale> in force. See L<perllocale> and L<perlunicode> -for more details about locale and Unicode support. +the C<\u> escape in double-quoted strings. If EXPR is omitted, uses C<$_>. +This function behaves the same way under various pragma, such as in a locale, +as L</lc> does. + =item umask EXPR X<umask> @@ -6894,7 +6948,9 @@ C<unpack> does the reverse of C<pack>: it takes a string and expands it out into a list of values. (In scalar context, it returns merely the first value produced.) -If EXPR is omitted, unpacks the C<$_> string. +If EXPR is omitted, unpacks the C<$_> string. for an introduction to this function. + +See L<perlpacktut> for an introduction to this function. The string is broken into chunks described by the TEMPLATE. Each chunk is converted separately to a value. Typically, either the string is a result |