diff --git a/hoot-core/src/main/cpp/hoot/core/util/StringUtils.cpp b/hoot-core/src/main/cpp/hoot/core/util/StringUtils.cpp
index 4c3e828..75058d2 100644
--- a/hoot-core/src/main/cpp/hoot/core/util/StringUtils.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/util/StringUtils.cpp
@@ -22,7 +22,7 @@
* This will properly maintain the copyright information. DigitalGlobe
* copyrights will be updated automatically.
*
- * @copyright Copyright (C) 2015, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
*/
#include "StringUtils.h"
@@ -193,4 +193,25 @@ void StringUtils::removeAll(QStringList& input, const QStringList& toRemove)
}
}
+bool StringUtils::containsAny(const QStringList& input, const QStringList& toCompare)
+{
+ for (int i = 0; i < toCompare.size(); i++)
+ {
+ // may eventually want a case sensitivity option here
+ if (input.contains(toCompare.at(i)))
+ {
+ return true;
+ }
+ }
+ return false;
+}
+
+void StringUtils::removeAllWithKey(QMap<QString, QString>& input, const QStringList& keysToRemove)
+{
+ for (int i = 0; i < keysToRemove.size(); i++)
+ {
+ input.remove(keysToRemove.at(i));
+ }
+}
+
}