-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.49..v0.2.50 changeset FileUtils.h
Garret Voltz edited this page Nov 6, 2019
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/util/FileUtils.h b/hoot-core/src/main/cpp/hoot/core/util/FileUtils.h
index c36fae1..328d0d2 100644
--- a/hoot-core/src/main/cpp/hoot/core/util/FileUtils.h
+++ b/hoot-core/src/main/cpp/hoot/core/util/FileUtils.h
@@ -76,6 +76,16 @@ public:
static void writeFully(const QString& path, const QString& text);
/**
+ * Replaces a set of texts in a file with another set of texts
+ *
+ * @param path path of the file to modify
+ * @param textsToReplace the texts in the file to be replaced
+ * @param replacementTexts the texts in the file to replace with
+ */
+ static void replaceFully(const QString& path, const QStringList& textsToReplace,
+ const QStringList& replacementTexts);
+
+ /**
* Returns the number of lines in a file
*
* @param file file to examine