NWLUnicodeToUTF8Size

Computes the number of bytes that must be allocated to store a Unicode string in UTF-8 format.

Local Servers:nonblocking
Remote Servers:N/A
NetWare Server:4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows95, Windows 98
Library:Cross-Platform Localization (LOC*.*)
Service:Unicode

Syntax

   N_GLOBAL_(nuint) NWLUnicodeToUTF8Size (
      punicode   uniStr);
   

Pascal Syntax

   uses netwin32 
    
   Function NWLUnicodeToUTF8Size 
     (uniStr : punicode              
   ): nint;
   

Parameters

uniStr
(IN) Points to a Unicode string.

Return Values

Returns the size (in bytes) required to store a Unicode string (including the string termination character) in UTF-8 format.

Remarks

For sample code, see utf8.c.

See Also

NWLUnicodeToUTF8, NWLUTF8ToUnicode, NWLUTF8ToUnicodeSize