Ll
), upper case letters (Lu
),
titlecase letters (Lt
), other letters (Lo
), letter numerals (Nl
) and the
two characters \u0024 ‘$’
and \u005F ‘_’
, which both count as upper case
letters."0 { case __ => __ }
returns 0, just like0 { case aa => aa }
while0 { case AA => AA }
doesn't compile. Should the above quote be modified? ($$ does behave like AA).Also:
scala> java.lang.Character.isUpperCase('_')
res1: Boolean = false
scala> java.lang.Character.isLowerCase('_')
res2: Boolean = false
IIUC Unicode defines case only for some scripts, not for all characters.
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.