This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Japanese/Chinese language question


>>> On Thu, 21 Jan 2010 14:40:55 +0100
>>> Corinna Vinschen said:

> When comparing strings linguistically (strcoll/wcscoll),
>
> - are Hiragana and Katakana forms of the same character to be
>   treated as equal or as different?

They should be treated as different.

> - are half-width and full-width forms of the same CJK character
>   treated as equal or as different?

Different, too.

It is difficult to implement the collation algorithm from
scratch. I recommend to use LCMapString to generate sort keys.
-- 
Kazuhiro Fujieda

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]