| 21 | namespace cel::internal { |
| 22 | |
| 23 | bool 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 |