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

Function __parse_rules

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

Source from the content-addressed store, hash-verified

451}
452
453[[nodiscard]] static __tz::__continuation::__rules_t __parse_rules(istream& __input) {
454 int __c = __input.peek();
455 // A single - is not a SAVE but a special case.
456 if (__c == '-') {
457 __input.get();
458 if (chrono::__is_whitespace(__input.peek()))
459 return monostate{};
460 __input.unget();
461 return chrono::__parse_save(__input);
462 }
463
464 if (std::isdigit(__c) || __c == '+')
465 return chrono::__parse_save(__input);
466
467 return chrono::__parse_string(__input);
468}
469
470[[nodiscard]] static __tz::__continuation __parse_continuation(__tz::__rules_storage_type& __rules, istream& __input) {
471 __tz::__continuation __result;

Callers 1

__parse_continuationFunction · 0.85

Calls 6

__is_whitespaceFunction · 0.85
__parse_saveFunction · 0.85
__parse_stringFunction · 0.85
peekMethod · 0.80
getMethod · 0.65
isdigitFunction · 0.50

Tested by

no test coverage detected