[out] | pUtf | is a pointer to an output buffer receiving the converted multibyte string in UTF-8 format. The size of the buffer, in bytes, is specified by cbUtf value. An actual length of the converted string, in bytes, is returned by the function. If the null character is found in the input string the function stops the conversion and returns. The null terminator is not converted. |
[in] | cbUtf | specifies a byte size of the pUtf buffer. If the pUtf is NULL the parameter specifies a number of bytes of the output required by the caller or that would have been written if the caller would have passed a non-NULL buffer of cbUtf bytes of size. |
[in] | pUcs | is a pointer to a wide string to be converted to its multibyte equivalent. The string must be represented in the UCS-2 format (or in the UCS-4 format if objects of the wchar_t type are able to store UCS-4 characters). Its size, in wide characters is given by an input value of pcchUcs or by an input zero-terminator. Thus, if pcchUcs is not NULL or if it holds a value that is not (size_t) -1, the input wide string need not to be zero-terminated. |
[in,out] | pcchUcs | on input specifies a length, in wide characters, of the string to be converted. On output the pointer holds a number of wide characters successfully converted and, if pUtf is not NULL, written to the output buffer. The parameter can be NULL. If it is NULL, or the value it is associated with is (size_t) -1, the input string must be zero-terminated. Also if a null character appears among the first *pcchUcs characters of the string, the last part of the string is ignored. |