com.ibm.icu.charset
Interface UConverterConstants.UConverterCallbackReason
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.
UNKNOWN: ICU 3.6 This API might change or be removed in a future release.
Field Summary |
static int | CLONE < Called when the converter is closed. |
static int | CLOSE < The callback is called with this reason when a
'reset' has occured. |
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 |
public static final int CLONE
< Called when the converter is closed. The
callback should release any allocated memory.
public static final int CLOSE
< The callback is called with this reason when a
'reset' has occured. Callback should reset all
state.
public static final int ILLEGAL
< The code point is unassigned.
The error code U_INVALID_CHAR_FOUND will be set.
public 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.
public 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.
public static final int UNASSIGNED
Copyright (c) 2007 IBM Corporation and others.