1 Star 2 Fork 4

初雨团队 / CPPHelper

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
StringI.h 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
mingkuang 提交于 2017-05-31 18:46 . 1:解决 IsoOpenFile 返回值问题
#pragma once
#include <atlstr.h>
#include <utility>
class CStringI :
public CString
{
public:
CStringI()
:CString()
{
}
CStringI(LPCWSTR Str)
:CString(Str)
{
}
CStringI(LPCWSTR Str,int cchStr)
:CString(Str, cchStr)
{
}
/*CStringI(CStringI& Str)
:CString(Str)
{
}*/
CStringI(CString& Str)
:CString(Str)
{
}
CStringI(const CString& Str)
:CString(Str)
{
}
/*CStringI(const CStringI& Str)
:CString(Str)
{
}*/
CStringI MakeLowerI() const
{
CStringI Temp = *this;
Temp.MakeLower();
return Temp;
}
/*operator PCWSTR() const
{
return GetString();
}*/
friend bool operator!=(const CStringI& a, const CString& b)
{
return a.CompareNoCase(b) != 0;
}
friend bool operator==(const CStringI& a, const CStringI& b)
{
return a.CompareNoCase(b) == 0;
}
friend bool operator<(const CStringI& a, const CStringI& b)
{
return a.CompareNoCase(b)<0;
}
friend bool operator<=(const CStringI& a, const CStringI& b)
{
return a.CompareNoCase(b) <= 0;
}
friend bool operator>(const CStringI& a, const CStringI& b)
{
return a.CompareNoCase(b)>0;
}
friend bool operator>=(const CStringI& a, const CStringI& b)
{
return a.CompareNoCase(b) >= 0;
}
};
C++
1
https://gitee.com/Chuyu-Team/CPPHelper.git
git@gitee.com:Chuyu-Team/CPPHelper.git
Chuyu-Team
CPPHelper
CPPHelper
master

搜索帮助