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