Re: Proposal: New CollationKey Byte Representation API additions

Geoff Mottram <[email protected]>
Newsgroups gmane.comp.lib.icu.general
Message-ID <[email protected]>
Thanks for the link. That really helps me see what I'm talking about. The 
static getIterator method that takes a character array is fantastic. Is 
there any chance of adding some methods to make the iterators reusable?

Geoff Mottram
Minaret Corp.
[email protected]


Ram Viswanadha wrote:
> Hi Geoff,
> Please see
> http://oss.software.ibm.com/icu4j/doc/com/ibm/icu/text/UCharacterIterator.ht
> ml
> 
> 
>>You may file the proposal under my name if you like. Since you are
> 
> defining
> 
>>the UCharacterIterator class, it would be a huge improvement if you could
>>create an instance with a character array in addition to a
> 
> CharacterIterator
> 
>>(which introduces too much method calling overhead -- one call per
>>character).
> 
> http://oss.software.ibm.com/icu4j/doc/com/ibm/icu/text/UCharacterIterator.ht
> ml#getInstance(java.text.CharacterIterator)
> http://oss.software.ibm.com/icu4j/doc/com/ibm/icu/text/UCharacterIterator.ht
> ml#getInstance(char[])
> http://oss.software.ibm.com/icu4j/doc/com/ibm/icu/text/UCharacterIterator.ht
> ml#getInstance(char[],%20int,%20int)
> 
> 
>>It would be an additional improvement if there was a way to
>>reuse the UCharacterIterator instances. Something like a reset() function
>>that takes a character array.
> 
> The iterators are thin wrappers around the underlying text object. The
> object creation overhead should be minimal.
> 
> Regards,
> 
> Ram
> ---------------------------------------------------
> Ram Viswanadha
> International Components For Unicode
> GCoC San Jose
> IBM
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.