MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / operator()

Method operator()

eval/eval/regex_match_step.cc:48–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 const RE2& re;
47
48 bool operator()(const absl::Cord& value) const {
49 if (auto flat = value.TryFlat(); flat.has_value()) {
50 return RE2::PartialMatch(*flat, re);
51 }
52 return RE2::PartialMatch(static_cast<std::string>(value), re);
53 }
54
55 bool operator()(absl::string_view value) const {
56 return RE2::PartialMatch(value, re);

Callers

nothing calls this directly

Calls 2

TryFlatMethod · 0.80
has_valueMethod · 0.45

Tested by

no test coverage detected