The Mozilla
Organization
Our Mission
Who We Are
Getting Involved
Community
Editorials
What's New
Development
Roadmap
Module Owners
Blue Sky
Projects
Status
Tools
Products
Source Code
Binaries
Documentation
License Terms
Bug Reports
Search
Feedback


PUBLIC UNICVTAPI uint16* INTL_UTF8ToUCS2 ( const unsigned char *utf8p, int32 *num_chars )

Convert text from UTF-8 to UCS-2 encoding

Documentation

Convert text from UTF-8 to UCS-2 encoding. UCS-2 is the abbreviation for the two byte form of Unicode. UTF-8 is a transformation encoding for Unicode. For more information about UTF-8 look at RFC 2279 in ftp://ds.internic.net/rfc/rfc2279.txt . For more information about UCS-2, look at http://www.unicode.org.
Returns:
UCS-2 string, NULL terminated by U+0000, or NULL. The caller should free it by calling XP_FREE when it is no longer needed.
Parameters:
utf8p - Specifies the UTF-8 text buffer. It is NULL terminated.
num_chars - Returns the length of the converted UCS-2 in UCS-2 units not bytes
See Also:
INTL_UCS2ToUTF8

alphabetic index hierarchy of classes


Copyright © 1998 Netscape Communications Corporation

generated by doc++



Copyright © 1998 The Mozilla Organization.