From 57068b95ef14001b8c0f3f26a67ead0b025af401 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 15 Mar 2020 13:39:36 -0400 Subject: [PATCH] Internals: Move code, no functional change. --- src/V3Options.cpp | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/src/V3Options.cpp b/src/V3Options.cpp index dcc62fa74..71500599f 100644 --- a/src/V3Options.cpp +++ b/src/V3Options.cpp @@ -100,6 +100,24 @@ public: ~V3OptionsImp() {} }; +//###################################################################### +// V3LangCode class functions + +V3LangCode::V3LangCode(const char* textp) { + // Return code for given string, or ERROR, which is a bad code + for (int codei = V3LangCode::L_ERROR; codei < V3LangCode::_ENUM_END; ++codei) { + V3LangCode code = V3LangCode(codei); + if (0 == VL_STRCASECMP(textp, code.ascii())) { + m_e = code; + return; + } + } + m_e = V3LangCode::L_ERROR; +} + +//###################################################################### +// V3Options class functions + void V3Options::addIncDirUser(const string& incdir) { m_impp->addIncDirUser(incdir); } @@ -237,20 +255,6 @@ string V3Options::allArgsString() { return out; } -//###################################################################### -// V3LangCode class functions - -V3LangCode::V3LangCode(const char* textp) { - // Return code for given string, or ERROR, which is a bad code - for (int codei=V3LangCode::L_ERROR; codei