From 006e5b33b5bc8e3cbfe38cf97283e94166d90f82 Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Wed, 18 Dec 2019 10:24:40 +0100 Subject: [PATCH] Removed the regexes --- src/sfizz/Regexes.h | 13 ------------- tests/ParsingT.cpp | 1 - 2 files changed, 14 deletions(-) delete mode 100644 src/sfizz/Regexes.h diff --git a/src/sfizz/Regexes.h b/src/sfizz/Regexes.h deleted file mode 100644 index 950ef3b3..00000000 --- a/src/sfizz/Regexes.h +++ /dev/null @@ -1,13 +0,0 @@ -#include - -namespace sfz -{ -namespace Regexes -{ - static std::regex includes { R"V(#include\s*"(.*?)".*$)V", std::regex::optimize }; - static std::regex defines { R"(#define\s*(\$[a-zA-Z0-9_]+)\s+([a-zA-Z0-9-]+)(?=\s|$))", std::regex::optimize }; - static std::regex headers { R"(<(.*?)>(.*?)(?=<|$))", std::regex::optimize }; - static std::regex members { R"(([a-zA-Z0-9_]+)=([a-zA-Z0-9-_#.&\/\s\\\(\),\*]+)(?![a-zA-Z0-9_]*=))", std::regex::optimize }; - static std::regex opcodeParameters { R"(([a-zA-Z0-9_]+?)([0-9]+)$)", std::regex::optimize }; -} -} \ No newline at end of file diff --git a/tests/ParsingT.cpp b/tests/ParsingT.cpp index df8ee2d2..8489738c 100644 --- a/tests/ParsingT.cpp +++ b/tests/ParsingT.cpp @@ -21,7 +21,6 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -#include "Regexes.h" #include "SfzHelpers.h" #include #include "catch2/catch.hpp"