EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

CharNext function

Retrieves a pointer to the next character in a string. This function can handle strings consisting of either single- or multi-byte characters.

Syntax


LPTSTR WINAPI CharNext(
  _In_  LPCTSTR lpsz
);

Parameters

lpsz [in]

Type: LPCTSTR

A character in a null-terminated string.

Return value

Type: LPTSTR

The return value is a pointer to the next character in the string, or to the terminating null character if at the end of the string.

If lpsz points to the terminating null character, the return value is equal to lpsz.

Remarks

When called as an ANSI function, CharNext uses the system default code-page, whereas CharNextExA specifies a code-page to use.

This function works with default "user" expectations of characters when dealing with diacritics. For example: A string that contains U+0061 U+030a "LATIN SMALL LETTER A" + COMBINING RING ABOVE" — which looks like "å", will advance two code points, not one. A string that contains U+0061 U+0301 U+0302 U+0303 U+0304 — which looks like "a´^~¯", will advance five code points, not one, and so on.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

Unicode and ANSI names

CharNextW (Unicode) and CharNextA (ANSI)

See also

Reference
CharNextExA
CharPrev
Conceptual
Strings

 

 

Aggiunte alla community

AGGIUNGI
Mostra:
© 2014 Microsoft