Skip to main content

Mozilla

  • About
  • Foundation
  • Contribute
  • Community
  • Developers
  • Projects

  • Roadmap
  • Projects
  • Coding
    • Module Owners
    • Hacking
    • Get the Source
    • Build It
  • Testing
    • Releases
    • Nightly Builds
    • Report A Problem
  • Tools
    • Bugzilla
    • Tinderbox
    • Bonsai
    • MXR
  • FAQs

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


Copyright © 1998 Netscape Communications Corporation

generated by doc++


  • Support Options
  • Security Center
  • Privacy Policy
  • Contact Us

International Affiliates: Mozilla Europe - Mozilla Japan - Mozilla China

Portions of this content are © 1998–2008 by individual mozilla.org contributors
Content available under a Creative Commons license

Last modified April 16, 1998 Document History Edit this Page (or via CVS)