Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

UConverterImpl Struct Reference

UConverterImpl contains all the data and functions for a converter type. More...

#include <ucnv_cnv.h>

List of all members.

Public Attributes

UConverterType type
UConverterLoad load
UConverterUnload unload
UConverterOpen open
UConverterClose close
UConverterReset reset
T_ToUnicodeFunction toUnicode
T_ToUnicodeFunction toUnicodeWithOffsets
T_FromUnicodeFunction fromUnicode
T_FromUnicodeFunction fromUnicodeWithOffsets
T_GetNextUCharFunction getNextUChar
UConverterGetStarters getStarters
UConverterGetName getName


Detailed Description

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.

Definition at line 192 of file ucnv_cnv.h.


Member Data Documentation

UConverterClose UConverterImpl::close
 

Definition at line 199 of file ucnv_cnv.h.

T_FromUnicodeFunction UConverterImpl::fromUnicode
 

Definition at line 204 of file ucnv_cnv.h.

T_FromUnicodeFunction UConverterImpl::fromUnicodeWithOffsets
 

Definition at line 205 of file ucnv_cnv.h.

UConverterGetName UConverterImpl::getName
 

Definition at line 209 of file ucnv_cnv.h.

T_GetNextUCharFunction UConverterImpl::getNextUChar
 

Definition at line 206 of file ucnv_cnv.h.

UConverterGetStarters UConverterImpl::getStarters
 

Definition at line 208 of file ucnv_cnv.h.

UConverterLoad UConverterImpl::load
 

Definition at line 195 of file ucnv_cnv.h.

UConverterOpen UConverterImpl::open
 

Definition at line 198 of file ucnv_cnv.h.

UConverterReset UConverterImpl::reset
 

Definition at line 200 of file ucnv_cnv.h.

T_ToUnicodeFunction UConverterImpl::toUnicode
 

Definition at line 202 of file ucnv_cnv.h.

T_ToUnicodeFunction UConverterImpl::toUnicodeWithOffsets
 

Definition at line 203 of file ucnv_cnv.h.

UConverterType UConverterImpl::type
 

Definition at line 193 of file ucnv_cnv.h.

UConverterUnload UConverterImpl::unload
 

Definition at line 196 of file ucnv_cnv.h.


The documentation for this struct was generated from the following file:
Generated at Tue Dec 5 17:56:28 2000 for ICU by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000