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 unsigned char* INTL_ConvertLineWithoutAutoDetect ( int16 fromcsid, int16 tocsid, unsigned char *pSrc, uint32 block_size )

Converts a piece of text from one charset to another

Documentation

Converts a piece of text from one charset to another. This function does not do charset ID auto-detection. The caller must pass the from/to charset IDs. This function does not keep state. Don't use it to convert a stream of data. Only use this when you want to convert a string, and you have no way to hold on to the converter object. If the string gets converted in place (use the input buffer), then this function returns NULL.
Returns:
The converted text, null terminated, or NULL if converted in place
Parameters:
fromcsid - Specifies the charset ID to convert from
tocsid - Specifies the charset ID to convert to
pSrc - Specifies the input text
block_size - Specifies the number of bytes in the input text
See Also:
INTL_CallCharCodeConverter

alphabetic index hierarchy of classes


Copyright © 1998 Netscape Communications Corporation

generated by doc++

Copyright © 1998-2000 The Mozilla Organization.
Last modified April 17, 1998.