icu_locale_core/preferences/extensions/unicode/keywords/
first_day.rs

1// This file is part of ICU4X. For terms of use, please see the file
2// called LICENSE at the top level of the ICU4X source tree
3// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
4
5#[cfg(feature = "alloc")]
6use crate::preferences::extensions::unicode::enum_keyword;
7
8#[cfg(feature = "alloc")]
9enum_keyword!(
10    /// A Unicode First Day Identifier defines the preferred first day of the week for calendar display.
11    ///
12    /// Specifying "fw" in a locale identifier overrides the default value specified by
13    /// supplemental week data for the region.
14    ///
15    /// The valid values are listed in [LDML](https://unicode.org/reports/tr35/#UnicodeFirstDayIdentifier).
16    FirstDay {
17        /// Sunday
18        ("sun" => Sun),
19        /// Monday
20        ("mon" => Mon),
21        /// Tuesday
22        ("tue" => Tue),
23        /// Wednesday
24        ("wed" => Wed),
25        /// Thursday
26        ("thu" => Thu),
27        /// Friday
28        ("fri" => Fri),
29        /// Saturday
30        ("sat" => Sat)
31}, "fw");