Package com.ibm.icu.charset
Interface UConverterConstants.UConverterCallbackReason
-
- Enclosing interface:
- UConverterConstants
public static interface UConverterConstants.UConverterCallbackReason
The process condition code to be used with the callbacks. Codes which are greater than IRREGULAR should be passed on to any chained callbacks.
-
-
Field Summary
Fields Modifier and Type Field Description static int
CLONE
< Called when the converter is closed.static int
CLOSE
< The callback is called with this reason when a 'reset' has occurred.static int
ILLEGAL
< The code point is unassigned.static int
IRREGULAR
< The code point is illegal.static int
RESET
< The codepoint is not a regular sequence in the encoding.static int
UNASSIGNED
-
-
-
Field Detail
-
UNASSIGNED
static final int UNASSIGNED
- See Also:
- Constant Field Values
-
ILLEGAL
static final int ILLEGAL
< The code point is unassigned. The error code U_INVALID_CHAR_FOUND will be set.- See Also:
- Constant Field Values
-
IRREGULAR
static final int IRREGULAR
< The code point is illegal. For example, \\x81\\x2E is illegal in SJIS because \\x2E is not a valid trail byte for the \\x81 lead byte. Also, starting with Unicode 3.0.1, non-shortest byte sequences in UTF-8 (like \\xC1\\xA1 instead of \\x61 for U+0061) are also illegal, not just irregular. The error code U_ILLEGAL_CHAR_FOUND will be set.- See Also:
- Constant Field Values
-
RESET
static final int RESET
< The codepoint is not a regular sequence in the encoding. For example, \\xED\\xA0\\x80..\\xED\\xBF\\xBF are irregular UTF-8 byte sequences for single surrogate code points. The error code U_INVALID_CHAR_FOUND will be set.- See Also:
- Constant Field Values
-
CLOSE
static final int CLOSE
< The callback is called with this reason when a 'reset' has occurred. Callback should reset all state.- See Also:
- Constant Field Values
-
CLONE
static final int CLONE
< Called when the converter is closed. The callback should release any allocated memory.- See Also:
- Constant Field Values
-
-