diff --git a/core/misc.cpp b/core/misc.cpp index f071291..d624afb 100755 --- a/core/misc.cpp +++ b/core/misc.cpp @@ -544,6 +544,12 @@ return false; } +bool EqualNoCase(const std::string & str1, const std::string & str2) +{ + return EqualNoCase(str1.c_str(), str2.c_str()); +} + + bool ValidateEmail(const std::string & email) { if( email.empty() ) diff --git a/core/misc.h b/core/misc.h index bfe4dfd..f176d84 100755 --- a/core/misc.h +++ b/core/misc.h @@ -56,6 +56,7 @@ const char * ToStr(int value); bool IsSubString(const char * short_str, const char * long_str); bool IsSubStringNoCase(const char * short_str, const char * long_str); bool EqualNoCase(const char * str1, const char * str2); +bool EqualNoCase(const std::string & str1, const std::string & str2); bool ValidateEmail(const std::string & email);