summaryrefslogtreecommitdiffstats
path: root/yaml-cpp/src/regex.cpp
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-08-24 17:52:52 +0300
committerimarom <imarom@cisco.com>2015-08-24 17:52:52 +0300
commit36c6c87fe4380b214f8ff8a45dc0213fa109821c (patch)
treeac4886a9e36fef3d0d7f621ac46678ebb7486015 /yaml-cpp/src/regex.cpp
parent7d3be8c612e295820649779335288c197b80ccb2 (diff)
fix compile issues with external libarries
Diffstat (limited to 'yaml-cpp/src/regex.cpp')
-rwxr-xr-xyaml-cpp/src/regex.cpp60
1 files changed, 0 insertions, 60 deletions
diff --git a/yaml-cpp/src/regex.cpp b/yaml-cpp/src/regex.cpp
deleted file mode 100755
index b35b1f43..00000000
--- a/yaml-cpp/src/regex.cpp
+++ /dev/null
@@ -1,60 +0,0 @@
-#include "regex.h"
-
-namespace YAML
-{
- // constructors
- RegEx::RegEx(): m_op(REGEX_EMPTY)
- {
- }
-
- RegEx::RegEx(REGEX_OP op): m_op(op)
- {
- }
-
- RegEx::RegEx(char ch): m_op(REGEX_MATCH), m_a(ch)
- {
- }
-
- RegEx::RegEx(char a, char z): m_op(REGEX_RANGE), m_a(a), m_z(z)
- {
- }
-
- RegEx::RegEx(const std::string& str, REGEX_OP op): m_op(op)
- {
- for(std::size_t i=0;i<str.size();i++)
- m_params.push_back(RegEx(str[i]));
- }
-
- // combination constructors
- RegEx operator ! (const RegEx& ex)
- {
- RegEx ret(REGEX_NOT);
- ret.m_params.push_back(ex);
- return ret;
- }
-
- RegEx operator || (const RegEx& ex1, const RegEx& ex2)
- {
- RegEx ret(REGEX_OR);
- ret.m_params.push_back(ex1);
- ret.m_params.push_back(ex2);
- return ret;
- }
-
- RegEx operator && (const RegEx& ex1, const RegEx& ex2)
- {
- RegEx ret(REGEX_AND);
- ret.m_params.push_back(ex1);
- ret.m_params.push_back(ex2);
- return ret;
- }
-
- RegEx operator + (const RegEx& ex1, const RegEx& ex2)
- {
- RegEx ret(REGEX_SEQ);
- ret.m_params.push_back(ex1);
- ret.m_params.push_back(ex2);
- return ret;
- }
-}
-