On Sun, Apr 06, 2008 at 08:41:11AM -0700, Ovid wrote:

> Currently you can shove anything in there you want, but you must use
> upper-case keys for your personal use and all lower-case keys are
> reserved (and it's a parse error to use an unknown lower-case key). 
> Are there any strange Unicode issues where we might get confused about
> what is upper and lower case?)

I believe that there are code points which would be considered word
characters but do not have distinct upper and lower case forms (or by
implication title case either), but I hope that the good folks of
perl-unicode will correct me if I'm wrong.

Hence I'm not sure what the most efficient way of determining if
something is all lower case is. If I'm right, one can't just test

   if ($string eq lc $string)

because these code points would mess you up, and I *assume* that they
are not those which you want to consider reserved. I guess that one
needs to loop over all characters in the string, and verify that if
$char eq lc $char then also $char ne uc $char. (But one could first
short circuit the common pass case with the test above)

Nicholas Clark

Reply via email to