added to core/misc:

bool EqualNoCase(const std::string & str1, const std::string & str2)


git-svn-id: svn://ttmath.org/publicrep/winix/trunk@660 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
Tomasz Sowa 2010-10-01 23:20:03 +00:00
parent 7bc17a9202
commit 69c634d53f
2 changed files with 7 additions and 0 deletions

View File

@ -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) bool ValidateEmail(const std::string & email)
{ {
if( email.empty() ) if( email.empty() )

View File

@ -56,6 +56,7 @@ const char * ToStr(int value);
bool IsSubString(const char * short_str, const char * long_str); bool IsSubString(const char * short_str, const char * long_str);
bool IsSubStringNoCase(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 char * str1, const char * str2);
bool EqualNoCase(const std::string & str1, const std::string & str2);
bool ValidateEmail(const std::string & email); bool ValidateEmail(const std::string & email);