ICU4J Proposal: Addition of new APIs in RuleBasedCollator and CollationElementIterator
syn wee <[email protected]>
| Newsgroups | gmane.comp.lib.icu.general |
|---|---|
| Message-ID | <[email protected]> |
Proposal to add APIs in com.ibm.icu.text.RuleBasedCollator and
com.ibm.icu.text.CollationElementIterator to publicly accept
com.ibm.icu.text.UCharacterIterator arguments.
Please respond with comments by Oct 22nd 2003.
This proposal is with respect to jitterbug 2212,
http://www.jtcsv.com/cgibin/icu-bugs/collation?id=2212.
API to be added to com.ibm.icu.text.RuleBasedCollator
/**
* Return a CollationElementIterator for the given UCharacterIterator.
* The source iterator's integrity will be preserved since a new copy
* will be created for use.
* @see CollationElementIterator
*/
public CollationElementIterator
getCollationElementIterator(UCharacterIterator source)
API to be added to com.ibm.icu.text.CollationElementIterator
/**
* <p>Set a new source string iterator for iteration, and reset the
* offset to the beginning of the text.
* The source iterator's integrity will be preserved since a new copy
* will be created for use.
* </p>
* @param source the new source string iterator for iteration.
*/
public void setText(UCharacterIterator source)