NWLUTF8ToUnicodeSize
Computes the number of bytes that must be allocated to convert a UTF-8 string to Unicode.
N_GLOBAL_LIBRARY(nint) NWLUTF8ToUnicodeSize ( pnuint8 utf8Str, pnuint size);
uses netwin32 Function NWLUTF8ToUnicodeSize (utf8Str : pnuint8; size : pnuint ): nint;
These are common return values; see Return Values (Return Values for C) for more information.
For sample code, see utf8.c.