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

Function IsValidRelativeName

internal/names.cc:23–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace cel::internal {
22
23bool IsValidRelativeName(absl::string_view name) {
24 if (name.empty()) {
25 return false;
26 }
27 for (const auto& id : absl::StrSplit(name, '.')) {
28 if (!LexisIsIdentifier(id)) {
29 return false;
30 }
31 }
32 return true;
33}
34
35} // namespace cel::internal

Callers 1

TEST_PFunction · 0.85

Calls 2

LexisIsIdentifierFunction · 0.85
emptyMethod · 0.45

Tested by 1

TEST_PFunction · 0.68