[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-libunistring] toCasefold?
From: |
Simon Josefsson |
Subject: |
Re: [bug-libunistring] toCasefold? |
Date: |
Sun, 29 May 2011 09:25:35 +0200 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) |
Bruno Haible <address@hidden> writes:
> Hi Simon,
>
>> I'm looking for an implementation of the toCasefold(X) operation defined
>> in Unicode 6.0 section 3.13 page 114 [1] like this:
>>
>> R4 toCasefold(X): Map each character C in X to Case_Folding(C).
>>
>> • Case_Folding(C) uses the mappings with the status field value “C” or
>> “F” in the data file CaseFolding.txt in the Unicode Character
>> Database.
>
> This function maps a string X to a sting.
>
>> Reading the manual I found this function:
>>
>> -- Function: uint32_t * u32_casefold (const uint32_t *S, size_t N,
>> const char *ISO639_LANGUAGE, uninorm_t NF, uint32_t
>> *RESULTBUF, size_t *LENGTHP)
>> Returns the case folded string.
>>
>> but I'm not sure what to use for ISO639_LANGUAGE
>
> If you want a locale independent case folding, you can use the empty string
> as ISO639_LANGUAGE.
But does u32_casefold match Unicode toCasefold? Is it possible to
disable the SpecialCasing stuff?
/Simon