首页
社区
课程
招聘
[求助]有大小写转换的API吗?
发表于: 2008-5-31 19:59 6107

[求助]有大小写转换的API吗?

2008-5-31 19:59
6107
我想将一个字符串大写转成小写的,有什么API可以转换啊??

[课程]Android-CTF解题方法汇总!

收藏
免费 0
支持
分享
最新回复 (2)
雪    币: 485
活跃值: (12)
能力值: ( LV9,RANK:490 )
在线值:
发帖
回帖
粉丝
2
CharLower
The CharLower function converts a character string or a single character to lowercase. If the operand is a character string, the function converts the characters in place.

LPTSTR CharLower(
  LPTSTR lpsz   // single character or string
);
Parameters
lpsz
[in/out] Pointer to a null-terminated string or specifies a single character. If the high-order word of this parameter is zero, the low-order word must contain a single character to be converted.
Return Values
If the operand is a character string, the function returns a pointer to the converted string. Since the string is converted in place, the return value is equal to lpsz.

If the operand is a single character, the return value is a 32-bit value whose high-order word is zero, and low-order word contains the converted character.

There is no indication of success or failure. Failure is rare. There is no extended error information for this function; do not call GetLastError.

Remarks
Note that CharLower always maps uppercase I to lowercase I, even when the current language is Turkish or Azeri.

Windows NT/2000/XP: To make the conversion, the function uses the language driver for the current language selected by the user at setup or by using Control Panel. If no language has been selected, the system completes the conversion by using internal default mapping. The conversion is made based on the code page associated with the process locale.

Windows 95/98/Me: The function makes the conversion based on the information associated with the user's default locale, which is the locale selected by the user at setup or by using Control Panel. The system does not have language drivers.

Windows 95/98/Me: CharLowerW is supported by the Microsoft Layer for Unicode. To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems.
2008-5-31 20:03
0
雪    币: 249
活跃值: (10)
能力值: ( LV3,RANK:30 )
在线值:
发帖
回帖
粉丝
3
mov esi,sztest
lodsb
or al,0x20
2008-5-31 22:00
0
游客
登录 | 注册 方可回帖
返回
//