develooper Front page | perl.perl6.internals | Postings from June 2001

RE: Should we care much about this Unicode-ish criticism?

Thread Previous | Thread Next
From:
Garrett Goebel
Date:
June 7, 2001 06:24
Subject:
RE: Should we care much about this Unicode-ish criticism?
Message ID:
71BEC0D4E1DED3118F7A009027B12028010BDEE8@EXCH_MISSION
From: David L. Nicol [mailto:david@kasey.umkc.edu]
> Russ Allbery wrote:
> > 
> >  a caseless character wouldn't show up in
> > either IsLower or IsUpper.
> 
> maybe an IsCaseless is warrented -- or Is[Upper|Lower]
> could return UNKNOWN instead of TRUE|FALSE, if the
> extended boolean attributes allow transbinary truth values.

non-zero, zero, undef

Outside of using a regex, we don't have anything equivalent to
Is[Upper|Lower] in Perl 5 do we? I'm feeling in need of some context. Anyone
got a use case for when someone would be processing characters and NEED to
know that they're caseless? Trying to convert a string of Roman Latin chars
from lowercase to upper when there isn't any case to convert? Couldn't that
be a no-op? If Perl knows the character is caseless why not let it DWIM?


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About