MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / FindByDisplayName

Method FindByDisplayName

base/operators.cc:193–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193absl::optional<Operator> Operator::FindByDisplayName(absl::string_view input) {
194 absl::call_once(operators_once_flag, InitializeOperators);
195 if (input.empty()) {
196 return absl::nullopt;
197 }
198 auto it = std::lower_bound(operators_by_display_name.cbegin(),
199 operators_by_display_name.cend(), input,
200 OperatorDataDisplayNameComparer{});
201 if (it == operators_by_name.cend() || (*it)->display_name != input) {
202 return absl::nullopt;
203 }
204 return Operator(*it);
205}
206
207absl::optional<UnaryOperator> UnaryOperator::FindByName(
208 absl::string_view input) {

Callers

nothing calls this directly

Calls 7

OperatorClass · 0.85
UnaryOperatorClass · 0.85
BinaryOperatorClass · 0.85
TernaryOperatorClass · 0.85
emptyMethod · 0.45
cbeginMethod · 0.45
cendMethod · 0.45

Tested by

no test coverage detected