diff options
Diffstat (limited to 'orkbasecxx/Utils.cpp')
-rw-r--r-- | orkbasecxx/Utils.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/orkbasecxx/Utils.cpp b/orkbasecxx/Utils.cpp index dca2200..f06d673 100644 --- a/orkbasecxx/Utils.cpp +++ b/orkbasecxx/Utils.cpp @@ -24,6 +24,23 @@ bool StringIsDigit(CStdString& string) return true; } +bool MatchesStringList(CStdString& string, std::list<CStdString>& stringList) +{ + if(string.size() == 0) + { + return false; + } + for(std::list<CStdString>::iterator it = stringList.begin(); it != stringList.end(); it++) + { + CStdString element = *it; + + if(element.CompareNoCase(string) == 0) + { + return true; + } + } + return false; +} //======================================================== // file related stuff |