|
From: Deborah G. <gol...@ap...> - 2005-10-14 21:20:26
|
I don't think that would work for this application, since it's for =20 text break. What I want to do is scan forward from an index and find =20 the first character that is not in a particular Unicode set. Since =20 it's inside text break, the text is represented by a =20 CharacterIterator (and in the future I assume UText). Deborah On Oct 14, 2005, at 2:10 PM, George Rhoten wrote: > Have you tried using the UnicodeSet::addAll(UnicodeString) function =20= > on an > empty set, and then using UnicodeSet::containsAll(UnicodeSet)? > > George Rhoten > IBM Globalization Center of Competency/ICU San Jos=E9, CA, USA > http://www.icu-project.org/ > http://icu.sourceforge.net/ > > > > Deborah Goldsmith <gol...@ap...> > Sent by: icu...@li... > 10/14/2005 01:56 PM > Please respond to > icu-design > > > To > icu...@li... > cc > > Subject > [icu-design] Fast span? > > > > > > > Hi, > > I'm still working on the Thai word break. Is there any way to do a > fast span of a UnicodeSet over a string or CharacterIterator, other > than iterating and calling set->contains(char) repeatedly? I looked > but couldn't find anything. > > Deborah > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, =20 > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > icu-design mailing list > icu...@li... > To Un/Subscribe: https://lists.sourceforge.net/lists/listinfo/icu-=20 > design |