The Mozilla
Organization
At A Glance
Feedback
Get Involved
Newsgroups
License Terms
Newsbot
Developer Docs
Roadmap
Projects
Ports
Module Owners
Hacking
Get the Source
Build It
Testing
Download
Bugzilla
Bug Writing
Tools
View Source
Tree Status
New Checkins
Submit A Bug
FAQ
Search

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-1999 The Mozilla Organization.
Last modified April 17, 1998.