NWNextChar
Increments a pointer to the next character in a string with multibyte characters
#include <time.h> or #define NWL_EXCLUDE_TIME
#include <stdio.h> or #define NWL_EXCLUDE_FILE
#include <nwlocale.h>
pnstr N_API NWNextChar (
const nstr N_FAR *string);
uses netwin32
Function NWNextChar
(const str : pnstr
) : pnstr;
Pointer to the next character (not byte) in the specified string.
NWNextChar is called to move through strings whose characters are one or two bytes each in length. For example, NWNextChar could be called for strings containing characters from a Japanese character set.
In a multibyte string, it is not obvious whether the current byte is a single-byte character or the second character of a double-byte character. NWNextChar resolves this ambiguity.
Increment a pointer with he statement ptr=NWNextChar(ptr) instead of ptr++.
The NWNextChar function is implemented as a call to AnsiNext in Windows.