The Mozilla
Organization
Our Mission
Who We Are
Getting Involved
Community
Editorials
What's New
Projects
Module Owners
Blue Sky
New Layout
Mail/News
Ports
Other
Source Code
Getting It
Documentation
License Terms
Bugs
Search
Feedback
DevEdge Online


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++



Copyright © 1998 Netscape Communications Corporation.