Lines Matching defs:tzdb
22 #include "include/tzdb/time_zone_private.h"
23 #include "include/tzdb/types_private.h"
24 #include "include/tzdb/tzdb_list_private.h"
25 #include "include/tzdb/tzdb_private.h"
46 // TODO TZDB Implement the Windows mapping in tzdb::current_zone
75 std::__throw_runtime_error("corrupt tzdb: expected whitespace");
105 (string("corrupt tzdb: expected character '") + __expected + "', got '" + __c + "' instead").c_str());
114 (string("corrupt tzdb: expected character '") + __c + "' from string '" + string(__expected) + "', got '" +
132 std::__throw_runtime_error("corrupt tzdb: expected a string");
146 std::__throw_runtime_error("corrupt tzdb: expected a digit");
149 std::__throw_runtime_error("corrupt tzdb: expected a non-zero digit");
168 std::__throw_runtime_error("corrupt tzdb: integral too large");
182 std::__throw_runtime_error("corrupt tzdb day: value too large");
225 std::__throw_runtime_error("corrupt tzdb weekday: invalid name");
294 std::__throw_runtime_error("corrupt tzdb month: invalid name");
305 std::__throw_runtime_error("corrupt tzdb year: year is less than the minimum");
307 std::__throw_runtime_error("corrupt tzdb year: year is greater than the maximum");
334 std::__throw_runtime_error("corrupt tzdb year: expected 'min' or 'max'");
360 std::__throw_runtime_error("corrupt tzdb on: expected '>=' or '<='");
548 static void __parse_rule(tzdb& __tzdb, __tz::__rules_storage_type& __rules, istream& __input) {
573 static void __parse_zone(tzdb& __tzdb, __tz::__rules_storage_type& __rules, istream& __input) {
589 static void __parse_link(tzdb& __tzdb, istream& __input) {
599 static void __parse_tzdata(tzdb& __db, __tz::__rules_storage_type& __rules, istream& __input) {
632 std::__throw_runtime_error("corrupt tzdb: unexpected input");
687 void __init_tzdb(tzdb& __tzdb, __tz::__rules_storage_type& __rules) {
706 [[nodiscard]] static const time_zone* __current_zone_windows(const tzdb& tzdb) {
711 [[nodiscard]] static const time_zone* __current_zone_posix(const tzdb& tzdb) {
736 if (const time_zone* __result = tzdb.__locate_zone(__tz))
741 std::__throw_runtime_error("tzdb: the symlink '/etc/localtime' does not exist");
744 std::__throw_runtime_error("tzdb: the path '/etc/localtime' is not a symlink");
753 if (const time_zone* __result = tzdb.__locate_zone(__name))
756 std::__throw_runtime_error(("tzdb: the time zone '" + __name + "' is not found in the database").c_str());
769 [[nodiscard]] _LIBCPP_AVAILABILITY_TZDB _LIBCPP_EXPORTED_FROM_ABI const time_zone* tzdb::__current_zone() const {
777 _LIBCPP_AVAILABILITY_TZDB _LIBCPP_EXPORTED_FROM_ABI const tzdb& reload_tzdb() {