| 511 | //===----------------------------------------------------------------------===// |
| 512 | |
| 513 | static string __parse_version(istream& __input) { |
| 514 | // The first line in tzdata.zi contains |
| 515 | // # version YYYYw |
| 516 | // The parser expects this pattern |
| 517 | // #\s*version\s*\(.*) |
| 518 | // This part is not documented. |
| 519 | chrono::__matches(__input, '#'); |
| 520 | chrono::__skip_optional_whitespace(__input); |
| 521 | chrono::__matches(__input, "version"); |
| 522 | chrono::__skip_mandatory_whitespace(__input); |
| 523 | return chrono::__parse_string(__input); |
| 524 | } |
| 525 | |
| 526 | [[nodiscard]] |
| 527 | static __tz::__rule& __create_entry(__tz::__rules_storage_type& __rules, const string& __name) { |
no test coverage detected