![]() | InDesign SDK 20.5 |
#include <BaseType.h>
Public Types | |
| typedef base_type | data_type |
Public Member Functions | |
| UTF32TextChar () | |
| UTF32TextChar (uint32 c32) | |
| UTF32TextChar (UTF16TextChar hi, UTF16TextChar low) | |
| UTF32TextChar (const UTF32TextChar &c) | |
| uint32 | GetValue () const |
| UTF16TextChar | CalcHighSurrogate () const |
| UTF16TextChar | CalcLowSurrogate () const |
| void | ToUTF16 (UTF16TextChar *buf, int32 *len) const |
| bool16 | operator== (UTF32TextChar c32) const |
| bool16 | operator!= (UTF32TextChar c32) const |
| bool16 | operator>= (UTF32TextChar i) const |
| bool16 | operator<= (UTF32TextChar i) const |
| bool16 | operator> (UTF32TextChar i) const |
| bool16 | operator< (UTF32TextChar i) const |
| UTF32TextChar & | operator= (const UTF32TextChar &c) |
| bool16 | isExtraWide () const |
| void | ReadWriteUTF16 (IPMStream *s) |
Protected Attributes | |
| uint32 | fCharacterValue |
UTF32TextChar holds a 32-bit unicode character. The advantage of the 32-bit character
over the 16-bit character is that you don't have 2-character sequences for surrogate characters as in 16-bit Unicode strings.
| typedef base_type UTF32TextChar::data_type |
This is a base_type, meaning that it can be copied with a block-move
| inline |
Default constructor
| inline |
Constructor 32-bit char
| uint32 | 32 bit character value |
| inline |
Constructor from 16-bit character representation
| hi | hi-order 16 bits of the 32-bit char |
| low | low-order 16 bits of the 32-bit char |
| inline |
Constructor 32-bit const char
| uint32 | const character value |
| inline |
Return the high order 16 bit value
| inline |
Return the low order 16 bit value
| inline |
Returns the 32 bit value of the character
| inline |
Returns kTrue if the value of this character can NOT be represented in 16 bits. In such a case, CalcHighSurrogate and CalcLowSurrogate can be used to get two consecutive 16-bit values that represent the codepoint
| inline |
Inequality comparison of two 32-bit characters
| c32 | character to compare to |
| inline |
Value comparison of two 32-bit characters
| i | character to compare to |
| inline |
Value comparison of two 32-bit characters
| i | character to compare to |
| inline |
Assignment operator.
| value | to assign to this |
| inline |
Equality comparison of two 32-bit characters
| c32 | character to compare to |
| inline |
Value comparison of two 32-bit characters
| i | character to compare to |
| inline |
Value comparison of two 32-bit characters
| i | character to compare to |
| void UTF32TextChar::ReadWriteUTF16 | ( | IPMStream * | s | ) |
Read or write out the value as a stream of 16-bit characters.
| s | input or output stream |
| inline |
Convert the 32-bit character into an array of 16-bit values
| buf | pointer to array |
| length | int32* OUT contains length of array after conversion. |