和字符串CString类相关的一些常用的函数
来源:互联网 发布:域名和ip绑定 编辑:程序博客网 时间:2024/06/05 17:36
1.GetFileExt 该函数返回一个文件的扩展名,例如lihui.ext,会返回“txt”,常用在文件对话框中,对某个文件的扩展名的判断上
CFileDialog::GetFileExt
CString GetFileExt( ) const;
Return Value
The extension of the filename.
Remarks
Call this function to retrieve the extension of the filename entered into the dialog box. For example, if the name of the file entered is DATA.TXT,GetFileExt returns "TXT".
2. MakeLower 该函数可以把大写字母变成小写字母
CString::MakeLower
void MakeLower( );
Remarks
Converts this CString object to a lowercase string.
// example for CString::MakeLowerCString s( "ABC" );s.MakeLower();ASSERT( s == "abc" );
3. Compare 用来比较两个字符串是否相同,如果相同的话,就返回0,不同的话再做比较
CString::Compare
int Compare( LPCTSTR lpsz ) const;
Return Value
Zero if the strings are identical, < 0 if this CString object is less thanlpsz, or > 0 if this CString object is greater than lpsz.
// example for CString::CompareCString s1( "abc" );CString s2( "abd" );ASSERT( s1.Compare( s2 ) == -1 ); // Compare with another CString.ASSERT( s1.Compare( "abe" ) == -1 ); // Compare with LPTSTR string.
0 0
- 和字符串CString类相关的一些常用的函数
- Cstring类的相关函数
- CString的一些函数
- 常用的字符串相关函数
- 一些常用的字符串函数
- CString的一些常用方法
- 转:char*, char[] ,CString, string之间的关系和一些常用函数
- 实现字符串的一些常用字符串函数
- CString分割字符串和截取字符串的成员函数
- CString类常用的几个函数
- MFC CString 的一些函数
- MSQL中常用的一些字符串函数
- 字符串处理的一些常用函数
- 字符串的一些常用操作函数
- 一些常用的T_SQL字符串处理函数
- 字符串有关的一些常用函数
- PHP一些常用的字符串函数
- PHP一些常用的字符串函数
- tomcat日志配置之一自带log
- qq登录,新浪微博登录接口申请过程中遇到的问题
- mybatis
- 【java】AES加密解密|及Base64的使用
- openwrt启动流程
- 和字符串CString类相关的一些常用的函数
- 吉布斯采样(Gibbs Sampling)及相关算法
- Linux内核中内存分配函数
- 10客户端导11g服务器数据时的问题
- 分红险、万能险、投连险与传统险的区别-现金流的描述
- Linux 下安装配置 JDK7
- unix 基础知识
- 系统的基本组成;中文Windows操作系统;字处理软件Word;电子表格软
- ajax提交异步验证