网站首页  词典首页

请输入您要查询的函数:

 

术语 charnext
释义 CharNext
语法:
LPTSTR CharNext( LPCTSTR lpsz
);
CharNext功能
该CharNext函数检索一个指向下一个字符的字符串。这个功能可以处理字符串的单个或者多字节字符组成。
参数
lpsz
[in]指向一个空字符结尾的字符串。
返回值
返回值是一个字符串中的下一个字符,或终止空字符指针,如果在字符串的末尾。这是指对函数或Unicode版本WCHARs ANSI版本字节。
如果lpsz指向终止空字符,则返回值等于lpsz。
备注
当作为一个ANSI函数调用,CharNext使用系统默认代码页,而CharNextExA指定代码页使用。
此功能可与默认的“用户”字的期望时,附加符号处理。例如:一个字符串,其中ü 0061 ü 030“拉丁美洲小甲”+配合力环以上“ -这看起来像”?“,将促进两个代码点,而不是一个。一个字符串,其中ü ü 0061 + 0301 ü 0302 ü 0303 ü 0304 -这看起来像“一'^~ˉ",会提前5码点,而不是一个,依此类推。
在Windows 95/98/Me:CharNextW是支持的Unicode(MSLU)微软层。要使用此,您必须将某些文件到您的应用,概述了对Unicode的Microsoft层在Windows 95/98/Me系统。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为ANSI和Unicode版本。
参见
Strings 概述 ,CharNextExA,CharPrev
==英文原文==CharNext Function
The 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 CharNext( LPCTSTR lpsz
);
Parameters
lpsz
[in] Pointer to a character in a null-terminated string.
Return Value
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. This refers to bytes for ANSI versions of the function or WCHARs for Unicode versions.
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.
Windows 95/98/Me: CharNextW is supported by the Microsoft Layer for Unicode (MSLU). To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems .
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as ANSI and Unicode versions.
See Also
Strings Overview , CharNextExA , CharPrev
==原始网址==http://msdn.microsoft.com/en-us/library/ms647469(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:24:29