NWLmblen
Returns the length of a multibyte character
#include <nwlocale.h>
nint N_API NWLmblen (
const nstr N_FAR *string,
size_t maxBytes);
uses netwin32
Function NWLmblen
(string : pnstr;
count : size_t
) : nint;
If the string parameter is not NULL, returns the length (in bytes) of the multibyte character.
If the string parameter is NULL, returns zero.
If the string does not form a valid multibyte character within the first count characters, returns -1.
Generally, maxBytes is set to 2 and the function returns 1 for a 1-byte or 2 for a 2-byte character.
Use the NWLmbslen function to count the number of character is a string.