Inheritance diagram for CP_MacRomanTextEncoder:
Public Member Functions | |
Constructor / Destructor | |
CP_MacRomanTextEncoder (bool inUseCompositeChars=false) | |
Constructor. | |
virtual | ~CP_MacRomanTextEncoder () |
Destructor. | |
Cloning | |
virtual CP_TextEncoder * | Clone () const |
Getters | |
virtual UInt32 | GetEncodingType () const |
Converters | |
virtual UInt32 | ToUTF16 (const char *inSrcChars, UInt32 inSrcLength, CPUniChar *inDestChars, UInt32 inDestLength) const |
virtual UInt32 | FromUTF16 (const CPUniChar *inSrcChars, UInt32 inSrcLength, char *inDestChars, UInt32 inDestLength) const |
Getters | |
virtual UInt32 | GetDestLength (const char *inSrcChars, UInt32 inSrcLength) const |
virtual UInt32 | GetDestLength (const CPUniChar *inSrcChars, UInt32 inSrcLength) const |
Static Public Member Functions | |
static const CP_MacRomanTextEncoder * | SharedTextEncoder () |
Accessor for shared text encoder object. | |
static CP_Mutex & | SharedTextEncoderMutex () |
Get Mutex for synchronizing access to shared text encoder object. | |
Protected Attributes | |
bool | fHasMacCodePage |
UInt32 | fTextFormat |
bool | fUseCompositeCharacters |
UInt32 | fConvertToUTF16Flags |
UInt32 | fConvertFromUTF16Flags |
const CPUniChar * | fEncoding |
TextToUnicodeInfo | fTextToUnicodeInfo |
UnicodeToTextInfo | fUnicodeToTextInfo |
|
Constructor.
|
|
Destructor. |
|
Returns the shared instance of a CP_MacRomanTextEncoder.
|
|
|
|
Returns a new text encoder object of the same type as this object.
Implements CP_TextEncoder. |
|
Reimplemented from CP_TextEncoder. |
|
Converts the passed in string to UTF16 encoding.
Reimplemented from CP_TextEncoder. |
|
Converts the passed in string from UTF16 encoding to the encoders type.
Reimplemented from CP_TextEncoder. |
|
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 from CP_TextEncoder. |
|
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 from CP_TextEncoder. |
|
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.
|
|
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. |