| 452 | parsers_(GetParsers(options_)) {} |
| 453 | |
| 454 | Status Decode(const uint8_t* data, uint32_t size, bool quoted, value_type* out) { |
| 455 | bool zone_offset_present = false; |
| 456 | for (const auto& parser : parsers_) { |
| 457 | if (parser->operator()(reinterpret_cast<const char*>(data), size, unit_, out, |
| 458 | &zone_offset_present) && |
| 459 | zone_offset_present == expect_timezone_) { |
| 460 | return Status::OK(); |
| 461 | } |
| 462 | } |
| 463 | return GenericConversionError(type_, data, size); |
| 464 | } |
| 465 | |
| 466 | protected: |
| 467 | using ParserVector = std::vector<const TimestampParser*>; |
nothing calls this directly
no test coverage detected