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

Function __parse_to

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

Source from the content-addressed store, hash-verified

339//===----------------------------------------------------------------------===//
340
341[[nodiscard]] static year __parse_to(istream& __input, year __only) {
342 if (std::tolower(__input.peek()) != 'o')
343 return chrono::__parse_year(__input);
344
345 __input.get();
346 chrono::__skip(__input, "nly");
347 return __only;
348}
349
350[[nodiscard]] static __tz::__constrained_weekday::__comparison_t __parse_comparison(istream& __input) {
351 switch (__input.get()) {

Callers 1

__parse_ruleFunction · 0.85

Calls 5

__parse_yearFunction · 0.85
__skipFunction · 0.85
peekMethod · 0.80
getMethod · 0.65
tolowerFunction · 0.50

Tested by

no test coverage detected