lc
Converts a string to lowercase.
Returns a lowercased copy of STRING. For ASCII input, an in-place
byte mutation fast path avoids allocation when a TARG pad slot is
available. For Unicode input, Rust’s to_lowercase() is used, which
handles case mappings that change byte length.
Synopsis
$lower = lc($string);
$lower = lc('HELLO'); # "hello"
Implementation Notes
perl5 reference:
pp.c:4758(lc path in pp_uc/pp_lc unified function). Non-UTF-8 locale path: use libc::tolower() per byte. perl5:pp.c:4818-4872.