ai::UTF16Traits Struct Reference
Encoding characteristics and functions for UTF-16 encoding.
More...
#include <IAICharacterEncoding.h>
List of all members.
Public Types |
typedef ASUnicode | unit_type |
| The basic type used to represent the data.
|
Static Public Member Functions |
static AICharacterEncoding | encoding () |
| Retrieves the Illustrator character-encoding type.
|
static size_t | codes_2_units (size_t codes) |
| Reports the maximum number of elements of the basic type needed to represent a sequence of a given number of character codes.
|
static size_t | units_2_codes (size_t units) |
| Reports the maximum number of characters codes that could be encoded by a given number of elements of the basic type.
|
Detailed Description
Encoding characteristics and functions for UTF-16 encoding.
Member Typedef Documentation
The basic type used to represent the data.
Member Function Documentation
static size_t ai::UTF16Traits::codes_2_units |
( |
size_t |
codes |
) |
[inline, static] |
Reports the maximum number of elements of the basic type needed to represent a sequence of a given number of character codes.
- Parameters:
-
| codes | The number of character codes. |
- Returns:
- The number of elements needed.
static size_t ai::UTF16Traits::units_2_codes |
( |
size_t |
units |
) |
[inline, static] |
Reports the maximum number of characters codes that could be encoded by a given number of elements of the basic type.
- Parameters:
-
| units | The number of elements. |
- Returns:
- The number of character codes.
The documentation for this struct was generated from the following file: