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

Function __parse_day

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

Source from the content-addressed store, hash-verified

177//===----------------------------------------------------------------------===//
178
179[[nodiscard]] static day __parse_day(istream& __input) {
180 unsigned __result = chrono::__parse_integral(__input, false);
181 if (__result > 31)
182 std::__throw_runtime_error("corrupt tzdb day: value too large");
183 return day{__result};
184}
185
186[[nodiscard]] static weekday __parse_weekday(istream& __input) {
187 // TZDB allows the shortest unique name.

Callers 1

__parse_onFunction · 0.85

Calls 2

__parse_integralFunction · 0.85
__throw_runtime_errorFunction · 0.85

Tested by

no test coverage detected