PUBLIC INTL_UnicodeToStrIterator INTL_UnicodeToStrIteratorCreate ( INTL_Unicode* ustr, uint32 ustrlen, INTL_Encoding_ID *encoding, unsigned char* dest, uint32 destbuflen )
Create an INTL_UnicodeToStrIterator and iterate through it once
Documentation
Create an INTL_UnicodeToStrIterator and iterate through it once. This function creates an INTL_UnicodeToStrIterator and iterates through it once to get the first element of Unicode text for font encoding conversion. The function uses the prioritized Character Set ID list (CSIDList) to decide which font encoding it will convert to. The iteration stops if the whole Unicode string is converted. Otherwise, it continues iterating and uses the next charset in the CSIDlist to convert the Unicode text.
- Returns:
- Iterator which keeps the iteration state
- Parameters:
- ustr - Specifies Unicode string to be converted
ustrlen - Specifies length of ustr in UCS-2 units not bytes
encoding - Returns the encoding of the first element. Returns 0 if there are no more to iterate.
dest - Specifies the buffer for output and returns the converted string for the first iteration
destbuflen - Specifies the length of dest in bytes - See Also:
- INTL_GetUnicodeCSIDList
INTL_SetUnicodeCSIDList
INTL_UnicodeToStrIterate
INTL_UnicodeToStrIteratorDestroy
INTL_GetUnicodeCharsetList
alphabetic index hierarchy of classes
generated by doc++