com.ibm.icu.text
public static class Transliterator.Position extends Object
After a transliteration operation, some of the indices in this structure will be modified. See the field descriptions for details.
contextStart <= start <= limit <= contextLimit
Note: All index values in this structure must be at code point boundaries. That is, none of them may occur between two code units of a surrogate pair. If any index does split a surrogate pair, results are unspecified.
UNKNOWN: ICU 2.0
Field Summary | |
---|---|
int | contextLimit
Ending index, exclusive, of the context to be considered for a
transliteration operation. |
int | contextStart
Beginning index, inclusive, of the context to be considered for
a transliteration operation. |
int | limit
Ending index, exclusive, of the text to be transliteratd.
|
int | start
Beginning index, inclusive, of the text to be transliteratd.
|
Constructor Summary | |
---|---|
Position()
Constructs a Position object with start, limit,
contextStart, and contextLimit all equal to zero. | |
Position(int contextStart, int contextLimit, int start)
Constructs a Position object with the given start,
contextStart, and contextLimit. | |
Position(int contextStart, int contextLimit, int start, int limit)
Constructs a Position object with the given start, limit,
contextStart, and contextLimit. | |
Position(Transliterator.Position pos)
Constructs a Position object that is a copy of another. |
Method Summary | |
---|---|
boolean | equals(Object obj)
Returns true if this Position is equal to the given object. |
void | set(Transliterator.Position pos)
Copies the indices of this position from another. |
String | toString()
Returns a string representation of this Position. |
void | validate(int length)
Check all bounds. |
UNKNOWN: ICU 2.0
UNKNOWN: ICU 2.0
UNKNOWN: ICU 2.0
UNKNOWN: ICU 2.0
UNKNOWN: ICU 2.0
UNKNOWN: ICU 2.0
UNKNOWN: ICU 2.0
UNKNOWN: ICU 2.6
UNKNOWN: ICU 2.6
UNKNOWN: ICU 2.6
UNKNOWN: ICU 2.6
Parameters: length the length of the string this object applies to
Throws: IllegalArgumentException if any indices are out of bounds
UNKNOWN: ICU 2.0