| 319 | } |
| 320 | |
| 321 | cel::Value parseAddressOrZero(const cel::StringValue& str) { |
| 322 | std::string buf; |
| 323 | absl::string_view addr = str.ToStringView(&buf); |
| 324 | absl::optional<NetworkAddressRep> rep = NetworkAddressRep::Parse(addr); |
| 325 | static const NetworkAddressRep kZero; |
| 326 | if (!rep.has_value()) { |
| 327 | return NetworkAddressRep::MakeValue(kZero); |
| 328 | } |
| 329 | return NetworkAddressRep::MakeValue(*rep); |
| 330 | } |
| 331 | |
| 332 | cel::Value parseAddressMatcher( |
| 333 | const cel::StringValue& str, |
nothing calls this directly
no test coverage detected