|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A UnicodeReadyThunk represents a string of codepoints. While there are ways to turn a string of Unicode codepoints into a list of UnicodeReadyThunks (DLC reference it), you cannot necessarily recover the exact sequence of Unicode codepoints from a UnicodeReadyThunk. For codepoints that are not Tibetan Unicode and are not one of a handful of other known codepoints, only the most primitive operations are available. Generally in this case you can recover the exact string of Unicode codepoints, but don't bank on it.
Method Summary | |
String |
getUnicodeRepresentation()
Returns a sequence of Unicode codepoints that is equivalent to this thunk if possible. |
boolean |
hasUnicodeRepresentation()
Returns true iff there exists a sequence of Unicode codepoints that correctly represents this thunk. |
boolean |
isTibetan()
Returns true iff this thunk is entirely Tibetan (regardless of whether or not all codepoints come from the Tibetan range of Unicode 3, i.e. |
Method Detail |
public boolean isTibetan()
U+0F00
-U+0FFF
, and
regardless of whether or not this thunk is syntactically legal
Tibetan).
public String getUnicodeRepresentation() throws UnsupportedOperationException
hasUnicodeRepresentation()
is true. Unicode has more than one
way to refer to the same language element, so this is just one
method. When more than one Unicode sequence exists, and when
the thunk is Tibetan
, this method returns
sequences that the Unicode 3.2 standard does not discourage.
UnsupportedOperationException
- if hasUnicodeRepresentation()
is falsepublic boolean hasUnicodeRepresentation()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |