Package com.ibm.icu.dev.demo.translit
Class AnyTransliterator.ScriptRunIterator
java.lang.Object
com.ibm.icu.dev.demo.translit.AnyTransliterator.ScriptRunIterator
- All Implemented Interfaces:
AnyTransliterator.RunIterator
- Enclosing class:
AnyTransliterator
public static class AnyTransliterator.ScriptRunIterator
extends Object
implements AnyTransliterator.RunIterator
Returns a series of ranges corresponding to scripts. They will be of the form:
ccccSScSSccccTTcTcccc - where c is common, S is the first script and T is the second
| | - first run
| | - second run
That is, the runs will overlap. The reason for this is so that a transliterator can
consider common characters both before and after the scripts.
The only time that contextStart != start is for the first run
(the context is the start context of the entire expanse)
The only time that contextLimit != limit is for the last run
(the context is the end context of the entire expanse)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Transliterator.Positionprivate booleanprivate Transliterator.Positionprivate intprivate static Setprivate Replaceable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static Setadd(Set s, Enumeration enumeration) voidadjust(int newCurrentLimit) booleanatEnd()voidvoidgetName()booleanstatic voidvoidreset()voidreset(Replaceable repText, Transliterator.Position expansePos) static voidset(Transliterator.Position run, Transliterator.Position current)
-
Field Details
-
text
-
expanse
-
current
-
script
private int script -
done
private boolean done -
scriptList
-
-
Constructor Details
-
ScriptRunIterator
public ScriptRunIterator()
-
-
Method Details
-
reset
- Specified by:
resetin interfaceAnyTransliterator.RunIterator
-
reset
public void reset()- Specified by:
resetin interfaceAnyTransliterator.RunIterator
-
next
- Specified by:
nextin interfaceAnyTransliterator.RunIterator
-
set
-
atEnd
public boolean atEnd()- Specified by:
atEndin interfaceAnyTransliterator.RunIterator
-
getCurrent
- Specified by:
getCurrentin interfaceAnyTransliterator.RunIterator
-
getExpanse
- Specified by:
getExpansein interfaceAnyTransliterator.RunIterator
-
getName
- Specified by:
getNamein interfaceAnyTransliterator.RunIterator
-
adjust
public void adjust(int newCurrentLimit) - Specified by:
adjustin interfaceAnyTransliterator.RunIterator
-
registerAnyToScript
public static void registerAnyToScript() -
add
-