Skip to content

v0.2.51..v0.2.52 changeset StringUtils.h

Garret Voltz edited this page Jan 15, 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 f47799e..146fc43 100644
--- a/hoot-core/src/main/cpp/hoot/core/util/StringUtils.h
+++ b/hoot-core/src/main/cpp/hoot/core/util/StringUtils.h
@@ -145,6 +145,14 @@ public:
    * @return true if any string in the input list contains the given substring; false otherwise
    */
   static bool containsSubstring(const QStringList& input, const QString& substring);
+
+  /**
+   * Removes all strings in a specified list from another string list
+   *
+   * @param input the list to remove strings from
+   * @param toRemove the list of string to remove
+   */
+  static void removeAll(QStringList& input, const QStringList& toRemove);
 };
 
 }
Clone this wiki locally