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.Position
private boolean
private Transliterator.Position
private int
private static Set
private Replaceable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static Set
add
(Set s, Enumeration enumeration) void
adjust
(int newCurrentLimit) boolean
atEnd()
void
void
getName()
boolean
static void
void
reset()
void
reset
(Replaceable repText, Transliterator.Position expansePos) static void
set
(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:
reset
in interfaceAnyTransliterator.RunIterator
-
reset
public void reset()- Specified by:
reset
in interfaceAnyTransliterator.RunIterator
-
next
- Specified by:
next
in interfaceAnyTransliterator.RunIterator
-
set
-
atEnd
public boolean atEnd()- Specified by:
atEnd
in interfaceAnyTransliterator.RunIterator
-
getCurrent
- Specified by:
getCurrent
in interfaceAnyTransliterator.RunIterator
-
getExpanse
- Specified by:
getExpanse
in interfaceAnyTransliterator.RunIterator
-
getName
- Specified by:
getName
in interfaceAnyTransliterator.RunIterator
-
adjust
public void adjust(int newCurrentLimit) - Specified by:
adjust
in interfaceAnyTransliterator.RunIterator
-
registerAnyToScript
public static void registerAnyToScript() -
add
-