[prev in list] [next in list] [prev in thread] [next in thread] 

List:       icu
Subject:    Re: Need "case folding quickcheck"
From:       Markus Scherer <markus.scherer () jtcsv ! com>
Date:       2004-12-07 18:18:08
Message-ID: 41B5F3E0.3080208 () jtcsv ! com
[Download RAW message or body]

The safest may be to enumerate all code points (or faster: all with Case_Sensitive), and apply 
simple and full case foldings. If they change, then add them to a set. Then store that set and use 
it in your code. (You can serialize a UnicodeSet, by the way. It generates a flat array of uint16_t.)

This should work because even full case folding by definition is context-insensitive.

You may need to do something special (read: hardcoding) with U+0130 and U+0131, as usual.

markus
_______________________________________________
icu mailing list
icu@oss.software.ibm.com
http://oss.software.ibm.com/developerworks/oss/mailman/listinfo/icu
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic