On Sat, Dec 26, 2009 at 7:37 AM, Dr.Ruud <rvtol+use...@isolution.nl> wrote:
>>> Is there a module that provides a C<fc> keyword that foldcases its
>>> input?
>> No unfortunately not. Its a good idea tho, it would be useful.
>
> There is:
>
> perlapi
>  ibcmp_utf8
>  to_utf8_fold
>
> Unicode::UCD::casefold()

to_utf8_fold would be the thing to wrap and apply over a string or
multiple strings to create the subroutine exported by the module,
called foldcase or fc. I'd use it isntead of lc in code that parses
configuration files, allowing non-ascii keywords that could still be
case-insensitive.

Reply via email to