Mount Fuji Engine  0.8b
MF_API wchar_t* MFString_UFT8AsWChar ( const char *  pUTF8String,
size_t *  pNumChars = NULL 
)

Converts a UTF-8 string to a temporary UTF-16 string, using the MFStr() buffer.

Parameters
pUTF8StringPointer to a UTF-8 string to copy.
pNumCharsOptional pointer to a size_t that receives the number of wchar_t's in the output buffer.
Returns
A pointer to the converted UTF-16 string in a temporary buffer.
Remarks
MFString_UFT8AsWChar() uses the MFStr() temporary buffer for storing the output. Refer to MFStr() for usage details.
See Also
MFWString_CopyUTF8ToUTF16(), MFStr(), MFStrN()