lbug 0.16.1

An in-process property graph database management system built for query speed and scalability
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "common/types/string_t.h"
#include "function/string/functions/base_regexp_function.h"
#include "re2.h"

namespace lbug {
namespace function {

struct RegexpMatches : BaseRegexpOperation {
    static inline void operation(common::string_t& left, common::string_t& right, uint8_t& result) {
        result = RE2::PartialMatch(left.getAsString(), parseCypherPattern(right.getAsString()));
    }
};

} // namespace function
} // namespace lbug