Inheritance diagram for CP_TextEncoder:
Getters | |
virtual UInt32 | GetDestLength (const char *inSrcChars, UInt32 inSrcLength) const |
virtual UInt32 | GetDestLength (const CPUniChar *inSrcChars, UInt32 inSrcLength) const |
virtual UInt32 | GetEncodingType () const |
Public Member Functions | |
Constructor / Destructor | |
CP_TextEncoder (UInt32 inTextFormat, bool inUseCompositeChars=false) | |
Constructor. | |
virtual | ~CP_TextEncoder () |
Destructor. | |
Cloning | |
virtual CP_TextEncoder * | Clone () const =0 |
Protected Attributes | |
UInt32 | fTextFormat |
bool | fUseCompositeCharacters |
UInt32 | fConvertToUTF16Flags |
UInt32 | fConvertFromUTF16Flags |
const CPUniChar * | fEncoding |
TextToUnicodeInfo | fTextToUnicodeInfo |
UnicodeToTextInfo | fUnicodeToTextInfo |
|
Constructor.
|
|
Destructor.
|
|
Implemented in CP_MacRomanTextEncoder, CP_WindowsLatin1TextEncoder, CP_US_ASCIITextEncoder, and CP_UTF8TextEncoder. |
|
Converts the passed in string to UTF16 encoding.
Reimplemented in CP_MacRomanTextEncoder, and CP_UTF8TextEncoder. |
|
Converts the passed in string from UTF16 encoding to the encoders type.
Reimplemented in CP_MacRomanTextEncoder, CP_US_ASCIITextEncoder, and CP_UTF8TextEncoder. |
|
Sets up the flags and various data members based on the passed in flags which are used to determine features and how errors are handled in the conversion.
|
|
Sets up the flags and various data members based on the passed in flags which are used to determine features and how errors are handled in the conversion.
|
|
Returns the approximate length that the converted passed in string will occupy. You can use this before converting the text to get an approximate size of the converted text to know how much memory to allocate for the buffer to hold the converted text. The returned length is only an approximation, as no actual conversion takes place.
Reimplemented in CP_MacRomanTextEncoder, and CP_UTF8TextEncoder. |
|
Returns the approximate length that the converted passed in string will occupy. You can use this before converting the text to get an approximate size of the converted text to know how much memory to allocate for the buffer to hold the converted text. The returned length is only an approximation, as no actual conversion takes place.
Reimplemented in CP_MacRomanTextEncoder. |
|
Reimplemented in CP_MacRomanTextEncoder, CP_WindowsLatin1TextEncoder, CP_US_ASCIITextEncoder, and CP_UTF8TextEncoder. |
|
Return the name of this encoder as a CPUniChar * string. |
|
UnicodeToTexUnicode info structure used on the Mac. |
|
MacOS - Returns the version of the TextEncoding Converter installed on the MacOS.
|
|
|
|
Format of the text. |
|
Flag to indicate if we are using composite characters. |
|
Flag used in converting to UTF16. |
|
Flag used in converting from UTF16. |
|
The encoding being used, expressed as a CPUniChar *string. |
|
TextToUnicode info structure used on the Mac. |