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