From edaefd178f7741a299c5cd46a0978643a1a06740 Mon Sep 17 00:00:00 2001 From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz> Date: Thu, 20 Feb 2020 08:48:25 +0100 Subject: [PATCH] unit build string regexp --- .../src/regexp/string/{FormalRegExp.cpp => FormalRegExp.cxx} | 4 ++-- alib2str/src/regexp/string/RegExp.cpp | 2 ++ .../string/{UnboundedRegExp.cpp => UnboundedRegExp.cxx} | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) rename alib2str/src/regexp/string/{FormalRegExp.cpp => FormalRegExp.cxx} (53%) create mode 100644 alib2str/src/regexp/string/RegExp.cpp rename alib2str/src/regexp/string/{UnboundedRegExp.cpp => UnboundedRegExp.cxx} (52%) diff --git a/alib2str/src/regexp/string/FormalRegExp.cpp b/alib2str/src/regexp/string/FormalRegExp.cxx similarity index 53% rename from alib2str/src/regexp/string/FormalRegExp.cpp rename to alib2str/src/regexp/string/FormalRegExp.cxx index 9992536c12..f16d1dc312 100644 --- a/alib2str/src/regexp/string/FormalRegExp.cpp +++ b/alib2str/src/regexp/string/FormalRegExp.cxx @@ -13,7 +13,7 @@ namespace { -auto stringWrite = registration::StringWriterRegister < regexp::FormalRegExp < > > ( ); -auto stringReader = registration::StringReaderRegister < regexp::RegExp, regexp::FormalRegExp < > > ( ); +auto stringWriteFormalRegExp = registration::StringWriterRegister < regexp::FormalRegExp < > > ( ); +auto stringReaderFormalRegExp = registration::StringReaderRegister < regexp::RegExp, regexp::FormalRegExp < > > ( ); } /* namespace */ diff --git a/alib2str/src/regexp/string/RegExp.cpp b/alib2str/src/regexp/string/RegExp.cpp new file mode 100644 index 0000000000..f01280f385 --- /dev/null +++ b/alib2str/src/regexp/string/RegExp.cpp @@ -0,0 +1,2 @@ +#include "FormalRegExp.cxx" +#include "UnboundedRegExp.cxx" diff --git a/alib2str/src/regexp/string/UnboundedRegExp.cpp b/alib2str/src/regexp/string/UnboundedRegExp.cxx similarity index 52% rename from alib2str/src/regexp/string/UnboundedRegExp.cpp rename to alib2str/src/regexp/string/UnboundedRegExp.cxx index 9179d1da28..9de486b42f 100644 --- a/alib2str/src/regexp/string/UnboundedRegExp.cpp +++ b/alib2str/src/regexp/string/UnboundedRegExp.cxx @@ -13,7 +13,7 @@ namespace { -auto stringWrite = registration::StringWriterRegister < regexp::UnboundedRegExp < > > ( ); -auto stringReader = registration::StringReaderRegister < regexp::RegExp, regexp::UnboundedRegExp < > > ( ); +auto stringWriteUnboundedRegExp = registration::StringWriterRegister < regexp::UnboundedRegExp < > > ( ); +auto stringReaderUnboundedRegExp = registration::StringReaderRegister < regexp::RegExp, regexp::UnboundedRegExp < > > ( ); } /* namespace */ -- GitLab