Search completed in 0.94 seconds.
6 results for "NS_UTF16ToCString":
NS_UTF16ToCString
« xpcom api reference summary the
ns_utf16tocstring function converts the value of a nsastring instance from utf-16 to the specified multi-byte encoding and stores the result in a nsacstring instance.
... #include "nsstringapi.h" nsresult
ns_utf16tocstring( const nsastring& asrc, nscstringencoding adestencoding, nsacstring& adest ); parameters asrc [in] a nsastring instance containing the source utf-16 string to be converted.
... return values the
ns_utf16tocstring function returns ns_ok if successful.
... example code // convert utf-16 (or ucs-2) string to utf-8 void copyutf16toutf8(const nsastring& in, nsacstring& out) {
ns_utf16tocstring(in, ns_cstring_encoding_utf8, out); } history this function was frozen for mozilla 1.7.
Index
ng external needscontent, reference, référence(2), strings class declaration 1190 nscstringcontainer (external) reference, référence(2), needsattention, strings class declaration 1191 nscstringencoding xpcom, xpcom api reference the nscstringencoding enumeration describes the set of character encodings understood by the ns_cstringtoutf16 and
ns_utf16tocstring functions.
... 1254
ns_utf16tocstring xpcom, xpcom api reference the
ns_utf16tocstring function converts the value of a nsastring instance from utf-16 to the specified multi-byte encoding and stores the result in a nsacstring instance.
nsCStringEncoding
« xpcom api reference summary the nscstringencoding enumeration describes the set of character encodings understood by the ns_cstringtoutf16 and
ns_utf16tocstring functions.
... see also ns_cstringtoutf16,
ns_utf16tocstring ...
nsIFile
xpcom provides the string conversion functions ns_cstringtoutf16 and
ns_utf16tocstring, which can be used to convert a string between utf-16 and the native character encoding.
... see also nsilocalfile ns_cstringtoutf16
ns_utf16tocstring ...
XPCOM glue classes
lass implementing an object that takes a strong reference to a reference-counted resource that must be released, typically on destruction of the object.</t>nscstringclass declarationnscstring externalclass declarationnscstringcontainer (external)class declaration nscstringencodingthe nscstringencoding enumeration describes the set of character encodings understood by the ns_cstringtoutf16 and
ns_utf16tocstring functions.nsdependentcstringclass declarationnsdependentcstring externalclass declarationnsdependentcsubstringclass declarationnsdependentcsubstring externalclass declarationnsdependentstringclass declarationnsdependentstring externalclass declarationnsdependentsubstringclass declarationnsdependentsubstring externalclass declarationnsembedcstringthe nsembedcstring concrete class provides a way to...
XPCOM string functions
this is a low-level api.
ns_utf16tocstringthe
ns_utf16tocstring function converts the value of a nsastring instance from utf-16 to the specified multi-byte encoding and stores the result in a nsacstring instance.