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 int utf8_to_local_encoding ( const unsigned char *utf8p, const int utf8len, unsigned char *LE_string, int LE_string_len, int *LE_written_len, int16 *LE_string_csid )

Converts a UTF-8 sub-string to the appropriate font encoding

Documentation

Converts a UTF-8 sub-string to the appropriate font encoding. Converts characters until the encoding changes or input/output space runs out. The segment is NOT NULL TERMINATED
Returns:
Length of converted UTF-8 string
Parameters:
utf8p - Specifies the UTF-8 string
utf8len - Specifies the length of utf8p
LE_string - Specifies and returns the (pre-allocated) buffer for the string converted to the font encoding
LE_string_len - Specifies the length of the buffer for LE_string
LE_written_len - Returns the valid length of the return LE_string
LE_string_csid - Returns the CSID of the return LE_string:
  • >0 if successful (valid CSID).
  • -1 if not Unicode.
  • -2 if no font encoding.

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)