Skip to content

v0.2.52..v0.2.53 changeset StringUtils.h

Garret Voltz edited this page Feb 12, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/util/StringUtils.h b/hoot-core/src/main/cpp/hoot/core/util/StringUtils.h
index 146fc43..7eb0322 100644
--- a/hoot-core/src/main/cpp/hoot/core/util/StringUtils.h
+++ b/hoot-core/src/main/cpp/hoot/core/util/StringUtils.h
@@ -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/)
  */
 
 #ifndef STRINGUTILS_H
@@ -153,6 +153,23 @@ public:
    * @param toRemove the list of string to remove
    */
   static void removeAll(QStringList& input, const QStringList& toRemove);
+
+  /**
+   * Determines if list contains any strings from another list
+   *
+   * @param input list to search
+   * @param toCompare list to compare with
+   * @return true if at least one match is found; false otherwise
+   */
+  static bool containsAny(const QStringList& input, const QStringList& compareList);
+
+  /**
+   * Removes all map entries from input that are contained in a specified list
+   *
+   * @param input map to modify
+   * @param keysToRemove keys to remove from input map
+   */
+  static void removeAllWithKey(QMap<QString, QString>& input, const QStringList& keysToRemove);
 };
 
 }
Clone this wiki locally