网站首页  词典首页

请输入您要查询的函数:

 

术语 charprev
释义 CharPrev
语法:
LPTSTR CharPrev( LPCTSTR lpszStart,
LPCTSTR lpszCurrent
);
CharPrev功能
该CharPrev函数检索一个指向前面的字符的字符串。这个功能可以处理字符串的单个或者多字节字符组成。
参数
lpszStart
[in]指向字符串的开头。
lpszCurrent
[in]指向一个空字符结尾的字符串。
返回值
返回值是一个字符串中的前面的字符或字符串中的第一个字符的指针,如果lpszCurrent参数等于lpszStart参数。这是指对函数或Unicode版本WCHARs ANSI版本字节。
备注
当作为一个ANSI函数调用,CharPrev使用系统默认代码页,而CharPrevExA指定代码页使用。
此功能可与默认的“用户”字的期望时,附加符号处理。例如:一个字符串,其中ü 0061 ü 030“拉丁美洲小甲”+配合力环以上“ -这看起来像”?“,将促进两个代码点,而不是一个。一个字符串,其中ü ü 0061 + 0301 ü 0302 ü 0303 ü 0304 -这看起来像“一'^~ˉ",会提前5码点,而不是一个,依此类推。
在Windows 95/98/Me:CharPrevW是支持的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 概述 ,CharNext,CharNextExA,CharPrevExA
==英文原文==CharPrev Function
The CharPrev function retrieves a pointer to the preceding character in a string. This function can handle strings consisting of either single- or multi-byte characters.
Syntax
LPTSTR CharPrev( LPCTSTR lpszStart,
LPCTSTR lpszCurrent
);
Parameters
lpszStart
[in] Pointer to the beginning of the string.
lpszCurrent
[in] Pointer to a character in a null-terminated string.
Return Value
The return value is a pointer to the preceding character in the string, or to the first character in the string if the lpszCurrent parameter equals the lpszStart parameter. This refers to bytes for ANSI versions of the function or WCHARs for Unicode versions.
Remarks
When called as an ANSI function, CharPrev uses the system default code-page, whereas CharPrevExA 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: CharPrevW 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 , CharNext , CharNextExA , CharPrevExA
==原始网址==http://msdn.microsoft.com/en-us/library/ms647471(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:28:46