Movatterモバイル変換


[0]ホーム

URL:


functions /lc
(source,CPAN)
You are viewing the version of this documentation from Perl 5.12.1.View the latest version
#lc EXPR
#lc

Returns a lowercased version of EXPR. This is the internal function implementing the\L escape in double-quoted strings.

If EXPR is omitted, uses$_.

What gets returned depends on several factors:

#Ifuse bytes is in effect:
#On EBCDIC platforms

The results are what the C language system calltolower() returns.

#On ASCII platforms

The results follow ASCII semantics. Only charactersA-Z change, toa-z respectively.

#Otherwise, If EXPR has the UTF8 flag set

If the current package has a subroutine namedToLower, it will be used to change the case (See"User-Defined Case Mappings" in perlunicode.) Otherwise Unicode semantics are used for the case change.

#Otherwise, ifuse locale is in effect

Respects current LC_CTYPE locale. Seeperllocale.

#Otherwise, ifuse feature 'unicode_strings' is in effect:

Unicode semantics are used for the case change. Any subroutine namedToLower will not be used.

#Otherwise:
#On EBCDIC platforms

The results are what the C language system calltolower() returns.

#On ASCII platforms

ASCII semantics are used for the case change. The lowercase of any character outside the ASCII range is the character itself.

Perldoc Browser is maintained by Dan Book (DBOOK). Please contact him via theGitHub issue tracker oremail regarding any issues with the site itself, search, or rendering of documentation.

The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via thePerl issue tracker, themailing list, orIRC to report any issues with the contents or format of the documentation.


[8]ページ先頭

©2009-2025 Movatter.jp