| 96 | } |
| 97 | |
| 98 | static inline Status ValidateDayOfWeekOptions(const DayOfWeekOptions& options) { |
| 99 | if (options.week_start < 1 || 7 < options.week_start) { |
| 100 | return Status::Invalid( |
| 101 | "week_start must follow ISO convention (Monday=1, Sunday=7). Got week_start=", |
| 102 | options.week_start); |
| 103 | } |
| 104 | return Status::OK(); |
| 105 | } |
| 106 | |
| 107 | static inline Result<std::locale> GetLocale(const std::string& locale) { |
| 108 | try { |