The WNTSLength method
This method returns the number of characters in the wide character string s, not including any trailing space characters.
int WNTSLength(const ITWChar *s, int nwchars = ITLocale::ScanToNul) const
The characters not included in the count are the ASCII space character and any wide characters equivalent to the ASCII space character.
The nwchars parameter
specifies the length of the corresponding wide character string s.
You can provide an integer to specify the number of characters in s.
Or you can use the constant ITLocale::ScanToNul
(the
default) to specify that s is a null-terminated string.
If
there is an error, this method returns -1
. Call ITLocale::GetError() to
retrieve a specific error message.