|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.icu.text.Transliterator.Position
public static class Transliterator.Position
Position structure for incremental transliteration. This data structure defines two substrings of the text being transliterated. The first region, [contextStart, contextLimit), defines what characters the transliterator will read as context. The second region, [start, limit), defines what characters will actually be transliterated. The second region should be a subset of the first.
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.
| 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 | |
|---|---|
Transliterator.Position()
Constructs a Position object with start, limit, contextStart, and contextLimit all equal to zero. |
|
Transliterator.Position(int contextStart,
int contextLimit,
int start)
Constructs a Position object with the given start, contextStart, and contextLimit. |
|
Transliterator.Position(int contextStart,
int contextLimit,
int start,
int limit)
Constructs a Position object with the given start, limit, contextStart, and contextLimit. |
|
Transliterator.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. |
int |
hashCode()
Deprecated. This API is ICU internal only. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int contextStart
public int contextLimit
public int start
public int limit
| Constructor Detail |
|---|
public Transliterator.Position()
public Transliterator.Position(int contextStart,
int contextLimit,
int start)
public Transliterator.Position(int contextStart,
int contextLimit,
int start,
int limit)
public Transliterator.Position(Transliterator.Position pos)
| Method Detail |
|---|
public void set(Transliterator.Position pos)
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic final void validate(int length)
length - the length of the string this object applies to
IllegalArgumentException - if any indices are out
of bounds
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||