- updated announcement to use a safer compare and added announcement url to ini files

This commit is contained in:
Mark Vejvoda
2010-10-07 18:43:29 +00:00
parent e400f449d6
commit fd60b30081
4 changed files with 14 additions and 5 deletions

View File

@@ -304,6 +304,10 @@ bool isdir(const char *path)
return ret;
}
bool StartsWith(const std::string &str, const std::string &key) {
return str.find(key) == 0;
}
bool EndsWith(const string &str, const string& key)
{
bool result = false;