| 73 | } |
| 74 | |
| 75 | std::string FormatField(absl::string_view field) { |
| 76 | if (ReservedFieldIdentifiers().contains(field) || |
| 77 | !RE2::FullMatch(field, *kSimpleIdentifierPattern)) { |
| 78 | return absl::StrCat(kBackQuote, field, kBackQuote); |
| 79 | } |
| 80 | return std::string(field); |
| 81 | } |
| 82 | |
| 83 | class Unparser { |
| 84 | public: |
no outgoing calls
no test coverage detected