Defines | |
#define | CP_LockSharedTextEncoder(lock, TextEncoderClass) CP_MutexLock lock(TextEncoderClass::SharedTextEncoderMutex()); |
Lock a shared text encoder. | |
Enumerations | |
enum | { kCP_ErrorOnInvalidCharacters = 0x1000, kCP_MapStrictChars = 0x2000, kCP_TextIsLeftToRight = 0x3000, kCP_TextIsRightToLeft = 0x4000 } |
enum | { kCP_EncodingInvalidId = (long)0xFFFFFFFF, kCP_EncodingMacRoman = 0, kCP_EncodingWindowsLatin1 = 0x0500, kCP_EncodingISOLatin1 = 0x0201, kCP_EncodingNextStepLatin = 0x0B01, kCP_EncodingASCII = 0x0600, kCP_EncodingUnicode = 0x0100, kCP_EncodingUTF8 = 0x08000100, kCP_EncodingNonLossyASCII = 0x0BFF } |
|
This convenience macro will lock a mutex regulating access to the shared text encoder of the specified class until the end of the current code block. if ( needToConvert ) { CP_LockSharedTextEncoder(lock, CP_UTF8TextEncoder); convert(CP_UTF8TextEncoder::SharedTextEncoder()); }
|
|
Flags used in the conversion process |
|