![]() | InDesign SDK 20.5 |
#include <CTUnicodeTranslator.h>
Public Member Functions | |
| int32 | CharToTextChar (const char *fromString, int32 fromStrLength, UTF16TextChar *toString, int32 toStrLength, int32 writingscript=kDontKnowScript) |
| int32 | TextCharToChar (const UTF16TextChar *fromString, int32 fromStrCharCount, char *toString, int32 toStrLength, int32 writingscript=kDontKnowScript) |
| int32 | TextCharToChar_Exact (const textchar *fromString, int32 fromStrCharCount, char *toString, int32 toStrLength, bool16 &stoppedFlag, int32 &bytesTranslated, int32 writingscript=kDontKnowScript) |
Static Public Member Functions | |
| static CTUnicodeTranslator * | Instance () |
| static CTEncoding * | GetUnicodeEncoding () |
| static void | DeleteInstance () |
Protected Member Functions | |
| UnicodeTranslateFromTo * | DetermineFontIndependentTranslator (int32 script) |
Translate platform string to Unicode and Unicode strings to platform.
| int32 CTUnicodeTranslator::CharToTextChar | ( | const char * | fromString, |
| int32 | fromStrLength, | ||
| UTF16TextChar * | toString, | ||
| int32 | toStrLength, | ||
| int32 | writingscript = kDontKnowScript | ||
| ) |
Convert platform buffer to Unicode buffer.
| fromString | buffer to translate |
| fromStrLength | length of fromString in bytes |
| toString | OUT buffer to put translation |
| toStrLength | length of UTF16TextChar allocated to toString. |
| writingscript | script of fromString. if kDontKnowScript then LocaleSetting::GetSystemScript is used |
| int32 CTUnicodeTranslator::TextCharToChar | ( | const UTF16TextChar * | fromString, |
| int32 | fromStrCharCount, | ||
| char * | toString, | ||
| int32 | toStrLength, | ||
| int32 | writingscript = kDontKnowScript | ||
| ) |
Convert Unicode buffer to platform buffer.
| fromString | buffer to translate |
| fromStrLength | length of fromString in UTF16TextChars |
| toString | OUT buffer to put translation |
| toStrLength | length of bytes allocated to toString. |
| writingscript | script of toString. if kDontKnowScript then LocaleSetting::GetSystemScript is used |
| int32 CTUnicodeTranslator::TextCharToChar_Exact | ( | const textchar * | fromString, |
| int32 | fromStrCharCount, | ||
| char * | toString, | ||
| int32 | toStrLength, | ||
| bool16 & | stoppedFlag, | ||
| int32 & | bytesTranslated, | ||
| int32 | writingscript = kDontKnowScript | ||
| ) |
Convert Unicode buffer to platform buffer.
| fromString | buffer to translate |
| fromStrLength | length of fromString in UTF16TextChars |
| toString | OUT buffer to put translation |
| toStrLength | length of bytes allocated to toString. |
| stoppedFlag | OUT translation was stopped |
| bytesTranslated | OUT number of bytes translated |
| writingscript | script of toString. if kDontKnowScript then LocaleSetting::GetSystemScript is used |