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 uint32 INTL_TextToUnicode ( INTL_Encoding_ID encoding, unsigned char* src, uint32 srclen, INTL_Unicode* ustr, uint32 ubuflen )

Convert text from non-Unicode to Unicode

Documentation

Convert text from non-Unicode to Unicode. The caller needs to call INTL_TextToUnicodeLen first to prepare memory and pass into ustr. The difference between INTL_StrToUnicode is the input is not specified by a NULL terminated string, but a pointer and length.
Returns:
Size of converted Unicode (in UCS-2 units not bytes)
Parameters:
encoding - Specifies the encoding of text in src
src - Specifies the text to be converted
srclen - Specifies the number of bytes in src
ustr - Specifies the buffer for the Unicode string and returns the converted Unicode string
ubuflen - Specifies the size of the ustr in the UCS-2 units not bytes
See Also:
INTL_TextToUnicodeLen
INTL_StrToUnicode

alphabetic index hierarchy of classes


Copyright © 1998 Netscape Communications Corporation

generated by doc++



Copyright © 1998 Netscape Communications Corporation.