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")] 6 use crate::preferences::extensions::unicode::enum_keyword; 7 8 #[cfg(feature = "alloc")] 9 enum_keyword!( 10 /// A Unicode Line Break Style Identifier defines a preferred line break style corresponding to the CSS level 3 line-break option. 11 /// 12 /// Specifying "lb" in a locale identifier overrides the locale’s default style 13 /// (which may correspond to "normal" or "strict"). 14 /// 15 /// The valid values are listed in [LDML](https://unicode.org/reports/tr35/#UnicodeLineBreakStyleIdentifier). 16 LineBreakStyle { 17 /// CSS level 3 line-break=strict, e.g. treat CJ as NS 18 ("strict" => Strict), 19 /// CSS level 3 line-break=normal, e.g. treat CJ as ID, break before hyphens for ja,zh 20 ("normal" => Normal), 21 /// CSS lev 3 line-break=loose 22 ("loose" => Loose), 23 }, "lb"); 24