Re: Need "case folding quickcheck"

Deborah Goldsmith <[email protected]> Mon, 6 Dec 2004 19:34:23 -0800
Newsgroups gmane.comp.lib.icu.general
Message-ID <[email protected]>
Yes, but I don't want the set of characters that can change under *any* 
case operation; I only want the set of characters that change 
specifically under case folding, and nothing else. Lowercase letters 
like "a" do not change under case folding. However, lowercase letters 
like ß *do* change under case folding, so 
[[:Case_Sensitive:]-[:Lowercase:]] does not work.

The reason I need this is for a process that needs to handle huge 
amounts of text. I can't afford to call u_strCaseFold unless there is 
something that actually needs to be folded. So I need to build a USet 
of things that need special handling, and then convert that to a bitmap 
for the BMP (and just calling u_strCaseFold if there is an SMP 
character).

Deborah

On Dec 6, 2004, at 6:59 PM, Mark Davis wrote:

> I thought case-sensitive included everything that could change or be 
> changed
> to under upper/lower/title/folding. Markus worked the most with this 
> stuff
> lately, so he'd probably have the best answer.
>
> ‎Mark
>
> ----- Original Message -----
> From: "Deborah Goldsmith" <[email protected]>
> To: "icu list" <[email protected]>
> Sent: Monday, December 06, 2004 18:45
> Subject: Need "case folding quickcheck"
>
>
>> I need to build a USet that is the set of characters that might change
>> under case folding. The best I have been able to come up with so far 
>> is
>> something like:
>>
>> [[[:Case_Sensitive:]-[:Lowercase:]][exceptions]]
>>
>> where "exceptions" is basically everything in CaseFolding.txt that
>> contains the word "SMALL".
>>
>> Is there a better way to do this?
>>
>> Thanks,
>> Deborah
>>
>> _______________________________________________
>> icu mailing list
>> [email protected]
>> http://oss.software.ibm.com/developerworks/oss/mailman/listinfo/icu
>>
>