add EqualsNoCase for better clarity than "!string.CompareNoCase()"
This commit is contained in:
@@ -812,13 +812,18 @@ public:
|
|||||||
// RString Facade Functions:
|
// RString Facade Functions:
|
||||||
//
|
//
|
||||||
// The following methods are intended to allow you to use this class as a
|
// The following methods are intended to allow you to use this class as a
|
||||||
// drop-in replacement for RString.
|
// drop-in replacement for CString.
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
int CompareNoCase(PCMYSTR szThat) const
|
int CompareNoCase(PCMYSTR szThat) const
|
||||||
{
|
{
|
||||||
return ssicmp(this->c_str(), szThat);
|
return ssicmp(this->c_str(), szThat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool EqualsNoCase(PCMYSTR szThat) const
|
||||||
|
{
|
||||||
|
return CompareNoCase(szThat) == 0;
|
||||||
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
// GetXXXX -- Direct access to character buffer
|
// GetXXXX -- Direct access to character buffer
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user