#pragma once
#include <regex>
#include "common/vector/value_vector.h"
namespace lbug {
namespace function {
struct BaseRegexpOperation {
static inline std::string parseCypherPattern(const std::string& pattern) {
return std::regex_replace(pattern, std::regex(R"(\\\\)"), "\\");
}
static inline void copyToLbugString(const std::string& value, common::string_t& lbugString,
common::ValueVector& valueVector) {
common::StringVector::addString(&valueVector, lbugString, value.data(), value.length());
}
};
} }