• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 Currency Format Identifier defines a style for currency formatting.
11     ///
12     /// The valid values are listed in [LDML](https://unicode.org/reports/tr35/#UnicodeCurrencyFormatIdentifier).
13     [Default]
14     CurrencyFormatStyle {
15         /// Negative numbers use the minusSign symbol (the default)
16         [default]
17         ("standard" => Standard),
18         /// Negative numbers use parentheses or equivalent
19         ("account" => Account)
20 }, "cf");
21