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

Function IsValidQualifiedName

common/container.cc:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace {
28
29bool IsValidQualifiedName(absl::string_view name) {
30 auto dot_pos = name.find('.');
31 while (dot_pos != absl::string_view::npos) {
32 if (!internal::LexisIsIdentifier(name.substr(0, dot_pos))) {
33 return false;
34 }
35 name = name.substr(dot_pos + 1);
36 dot_pos = name.find('.');
37 }
38 return internal::LexisIsIdentifier(name);
39}
40
41bool IsValidAlias(absl::string_view alias) {
42 return internal::LexisIsIdentifier(alias);

Callers 3

SetContainerMethod · 0.85
AddAbbreviationMethod · 0.85
AddAliasMethod · 0.85

Calls 1

LexisIsIdentifierFunction · 0.85

Tested by

no test coverage detected