Re: Proposal: add simpler case closure
Deborah Goldsmith <[email protected]> Fri, 1 Oct 2004 16:11:10 -0700
| Newsgroups | gmane.comp.lib.icu.c++.support,gmane.comp.lib.icu.general |
|---|---|
| Message-ID | <[email protected]> |
Whoops, there was one vital piece of information missing: what it does. :-) The simple case closure will take the existing items in the set, and perform uppercase, lowercase, and titlecase (only relevant for strings) operations on them, then add them back in. Therefore [a S DZ] would become [a A s S DZ Dz dz]. Deborah On Oct 1, 2004, at 3:53 PM, Deborah Goldsmith wrote: > Please respond by October 8. > > Currently requesting case closure when getting the exemplar set for a > locale (via ulocdata_getExemplarSet) will return a somewhat > overenthusiastic case closure. For example, getting the exemplar set > for en with the USET_CASE_INSENSITIVE option gives not [a-zA-Z] but > [a-zA-Z\u017f\u212a]. This proposal is meant to address this issue. > > Proposal: > 1. Add a new constant, USET_SIMPLE_CASE_INSENSITIVE = 4 to uset.h. > 2. Change UnicodeSet to pass this constant through to > UnicodeSet::closeOver > 3. Change closeOver to handle this option in addition to > USET_CASE_INSENSITIVE. > 4. If you specify both, it will ignore USET_SIMPLE_CASE_INSENSITIVE > and do only USET_CASE_INSENSITIVE, because USET_CASE_INSENSITIVE is a > proper superset of USET_SIMPLE_CASE_INSENSITIVE. > > You can then pass USET_SIMPLE_CASE_INSENSITIVE to > ulocdata_getExemplarSet to get the "intuitive" behavior. > > Deborah > > _______________________________________________ > icu mailing list > [email protected] > http://oss.software.ibm.com/developerworks/oss/mailman/listinfo/icu _______________________________________________ [email protected] - icu4c-support mailing list To Un/Subscribe: http://oss.software.ibm.com/developerworks/oss/mailman/listinfo/icu4c-support