add EqualsNoCase for better clarity than "!string.CompareNoCase()"

This commit is contained in:
Chris Danford
2006-03-26 17:50:11 +00:00
parent ee8329cee6
commit b280e160c3
+6 -1
View File
@@ -812,13 +812,18 @@ public:
// RString Facade Functions:
//
// 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
{
return ssicmp(this->c_str(), szThat);
}
bool EqualsNoCase(PCMYSTR szThat) const
{
return CompareNoCase(szThat) == 0;
}
// -------------------------------------------------------------------------
// GetXXXX -- Direct access to character buffer
// -------------------------------------------------------------------------