ICU4J API addition: CASE_INSENSITIVE and ADD_CASE_MAPPINGS
Markus Scherer <[email protected]> Tue, 15 Feb 2005 15:54:45 -0800
| Newsgroups | gmane.comp.lib.icu.general |
|---|---|
| Organization | IBM |
| Message-ID | <[email protected]> |
I propose to add to ICU4J's UnicodeSet class two option values in parallel with ICU4C.
The first is an alias to the existing [USET_]CASE option, the second is to port the new (ICU4C 3.2)
[USET_]ADD_CASE_MAPPINGS from C to J.
Expiration: 2005-feb-22
Sincerely,
markus
/**
* Alias for UnicodeSet.CASE, for ease of porting from C++ where ICU4C
* also has both USET_CASE and USET_CASE_INSENSITIVE (see uset.h).
* @see CASE
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future
release of ICU.
*/
public static final int CASE_INSENSITIVE = 2;
/**
* Bitmask for constructor, applyPattern(), and closeOver()
* indicating letter case. This may be ORed together with other
* selectors.
*
* Enable case insensitive matching. E.g., "[ab]" with this flag
* will match 'a', 'A', 'b', and 'B'. "[^ab]" with this flag will
* match all except 'a', 'A', 'b', and 'B'. This adds the lower-,
* title-, and uppercase mappings as well as the case folding
* of each existing element in the set.
* @draft ICU 3.4
* @deprecated This is a draft API and might change in a future
release of ICU.
*/
public static final int ADD_CASE_MAPPINGS = 4;