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 intCLONE
< Called when the converter is closed.
static intCLOSE
< The callback is called with this reason when a 'reset' has occured.
static intILLEGAL
< The code point is unassigned.
static intIRREGULAR
< The code point is illegal.
static intRESET
< The codepoint is not a regular sequence in the encoding.
static intUNASSIGNED

Field Detail

CLONE

public static final int CLONE
< Called when the converter is closed. The callback should release any allocated memory.

CLOSE

public static final int CLOSE
< The callback is called with this reason when a 'reset' has occured. Callback should reset all state.

ILLEGAL

public static final int ILLEGAL
< The code point is unassigned. The error code U_INVALID_CHAR_FOUND will be set.

IRREGULAR

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.

RESET

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.

UNASSIGNED

public static final int UNASSIGNED
Copyright (c) 2007 IBM Corporation and others.