From f421fe05a7b5e1250a2c3155d6e5884a91f20ed2 Mon Sep 17 00:00:00 2001
From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz>
Date: Wed, 8 Apr 2015 20:32:57 +0200
Subject: [PATCH] renaming

---
 .../src/stringology/exact/ExactFactorAutomaton.cpp   | 12 ++++++------
 .../src/stringology/exact/ExactFactorAutomaton.h     | 10 +++++-----
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/alib2algo/src/stringology/exact/ExactFactorAutomaton.cpp b/alib2algo/src/stringology/exact/ExactFactorAutomaton.cpp
index 570edc91ee..8d20f302fc 100644
--- a/alib2algo/src/stringology/exact/ExactFactorAutomaton.cpp
+++ b/alib2algo/src/stringology/exact/ExactFactorAutomaton.cpp
@@ -16,9 +16,9 @@ namespace stringology {
 
 namespace exact {
 
-automaton::Automaton ExactFactorAutomaton::construct(const string::String& pattern) {
+automaton::Automaton ExactFactorAutomaton::construct(const string::String& text) {
 	automaton::Automaton* out = NULL;
-	pattern.getData().Accept((void*) &out, ExactFactorAutomaton::EXACT_FACTOR_AUTOMATON);
+	text.getData().Accept((void*) &out, ExactFactorAutomaton::EXACT_FACTOR_AUTOMATON);
 	automaton::Automaton res = std::move(*out);
 	delete out;
 	return res;
@@ -39,14 +39,14 @@ automaton::EpsilonNFA ExactFactorAutomaton::construct(const string::LinearString
 	return res;
 }
 
-void ExactFactorAutomaton::Visit(void* data, const string::Epsilon& pattern) const {
+void ExactFactorAutomaton::Visit(void* data, const string::Epsilon& text) const {
 	automaton::Automaton* & out = *((automaton::Automaton**) data);
-	out = new automaton::Automaton(this->construct(string::LinearString(pattern)));
+	out = new automaton::Automaton(this->construct(string::LinearString(text)));
 }
 
-void ExactFactorAutomaton::Visit(void* data, const string::LinearString& pattern) const {
+void ExactFactorAutomaton::Visit(void* data, const string::LinearString& text) const {
 	automaton::Automaton* & out = *((automaton::Automaton**) data);
-	out = new automaton::Automaton(this->construct(pattern));
+	out = new automaton::Automaton(this->construct(text));
 }
 
 void ExactFactorAutomaton::Visit(void*, const string::CyclicString&) const {
diff --git a/alib2algo/src/stringology/exact/ExactFactorAutomaton.h b/alib2algo/src/stringology/exact/ExactFactorAutomaton.h
index 8c6ae0a2b3..b4957b220e 100644
--- a/alib2algo/src/stringology/exact/ExactFactorAutomaton.h
+++ b/alib2algo/src/stringology/exact/ExactFactorAutomaton.h
@@ -23,13 +23,13 @@ public:
 	 * Performs conversion.
 	 * @return left regular grammar equivalent to source automaton.
 	 */
-	static automaton::Automaton construct(const string::String& pattern);
+	static automaton::Automaton construct(const string::String& text);
 
-	static automaton::EpsilonNFA construct(const string::LinearString& pattern);
+	static automaton::EpsilonNFA construct(const string::LinearString& text);
 private:
-	void Visit(void*, const string::Epsilon& pattern) const;
-	void Visit(void*, const string::LinearString& pattern) const;
-	void Visit(void*, const string::CyclicString& pattern) const;
+	void Visit(void*, const string::Epsilon& text) const;
+	void Visit(void*, const string::LinearString& text) const;
+	void Visit(void*, const string::CyclicString& text) const;
 
 	static const ExactFactorAutomaton EXACT_FACTOR_AUTOMATON;
 };
-- 
GitLab