Computes the number of bytes that must be allocated to convert a string from UTF-8 to Unicode.
#include <unilib.h>
int Utf8ToUniSize (
const char *str,
size_t *uniBufSize);
(IN) Points to the source string.
(OUT) Returns the number of bytes required for the string in Unicode, minus the null terminator.
If successful, returns 0. Otherwise, returns a negative error code: