From b280e160c36550ef93d1410a55c44d2cfa6f3bbc Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 26 Mar 2006 17:50:11 +0000 Subject: [PATCH] add EqualsNoCase for better clarity than "!string.CompareNoCase()" --- stepmania/src/StdString.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stepmania/src/StdString.h b/stepmania/src/StdString.h index 1aff1d619f..82720962ad 100644 --- a/stepmania/src/StdString.h +++ b/stepmania/src/StdString.h @@ -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 // -------------------------------------------------------------------------