MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / __parse_version

Function __parse_version

system/lib/libcxx/src/experimental/tzdb.cpp:513–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511//===----------------------------------------------------------------------===//
512
513static 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]]
527static __tz::__rule& __create_entry(__tz::__rules_storage_type& __rules, const string& __name) {

Callers 2

__init_tzdbFunction · 0.85
remote_versionFunction · 0.85

Calls 4

__matchesFunction · 0.85
__parse_stringFunction · 0.85

Tested by

no test coverage detected