Class UConverterSharedData.UConverterType

java.lang.Object
com.ibm.icu.charset.UConverterSharedData.UConverterType
Enclosing class:
UConverterSharedData

static final class UConverterSharedData.UConverterType extends Object
UConverterImpl contains all the data and functions for a converter type. Its function pointers work much like a C++ vtable. Many converter types need to define only a subset of the functions; when a function pointer is NULL, then a default action will be performed. Every converter type must implement toUnicode, fromUnicode, and getNextUChar, otherwise the converter may crash. Every converter type that has variable-length codepage sequences should also implement toUnicodeWithOffsets and fromUnicodeWithOffsets for correct offset handling. All other functions may or may not be implemented - it depends only on whether the converter type needs them. When open() fails, then close() will be called, if present.