Search completed in 1.24 seconds.
6 results for "NS_CStringToUTF16":
NS_CStringToUTF16
« xpcom api reference summary the
ns_cstringtoutf16 function converts the value of a nsacstring instance to utf-16 and stores the result in a nsastring instance.
... #include "nsstringapi.h" nsresult
ns_cstringtoutf16( const nsacstring& asrc, nscstringencoding asrcencoding, nsastring& adest ); parameters asrc [in] a nsacstring instance containing the source string to be converted.
... return values the
ns_cstringtoutf16 function returns ns_ok if successful.
... example code nsembedcstring str("hello"); nsembedstring ustr;
ns_cstringtoutf16(str, ns_cstring_encoding_ascii, ustr); const prunichar *unicharbuf = ustr.get(); history this function was frozen for mozilla 1.7.
Index
1189 nscstring 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.
... 1243
ns_cstringtoutf16 xpcom, xpcom api reference the
ns_cstringtoutf16 function converts the value of a nsacstring instance to utf-16 and stores the result in a nsastring 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
ref<t> is a template class 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 c...
XPCOM string functions
this is a low-level api.
ns_cstringtoutf16the
ns_cstringtoutf16 function converts the value of a nsacstring instance to utf-16 and stores the result in a nsastring instance.