mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[ATL] Add CString.CompareNoCase
This commit is contained in:
parent
0ec08818b5
commit
4f8dc9c266
1 changed files with 18 additions and 0 deletions
|
@ -133,6 +133,13 @@ public:
|
|||
return ::wcscmp(psz1, psz2);
|
||||
}
|
||||
|
||||
static int __cdecl CompareNoCase(
|
||||
_In_z_ LPCWSTR psz1,
|
||||
_In_z_ LPCWSTR psz2)
|
||||
{
|
||||
return ::_wcsicmp(psz1, psz2);
|
||||
}
|
||||
|
||||
static int __cdecl FormatV(
|
||||
_In_opt_z_ LPWSTR pszDest,
|
||||
_In_z_ LPCWSTR pszFormat,
|
||||
|
@ -265,6 +272,13 @@ public:
|
|||
return ::strcmp(psz1, psz2);
|
||||
}
|
||||
|
||||
static int __cdecl CompareNoCase(
|
||||
_In_z_ LPCSTR psz1,
|
||||
_In_z_ LPCSTR psz2)
|
||||
{
|
||||
return ::_stricmp(psz1, psz2);
|
||||
}
|
||||
|
||||
static int __cdecl FormatV(
|
||||
_In_opt_z_ LPSTR pszDest,
|
||||
_In_z_ LPCSTR pszFormat,
|
||||
|
@ -593,6 +607,10 @@ public:
|
|||
return StringTraits::Compare(CThisSimpleString::GetString(), psz);
|
||||
}
|
||||
|
||||
int CompareNoCase(_In_z_ PCXSTR psz) const
|
||||
{
|
||||
return StringTraits::CompareNoCase(CThisSimpleString::GetString(), psz);
|
||||
}
|
||||
|
||||
CStringT Mid(int iFirst, int nCount) const
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue