icu_locale_core/preferences/extensions/unicode/keywords/
emoji.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
5use crate::preferences::extensions::unicode::enum_keyword;
6
7enum_keyword!(
8    /// A Unicode Emoji Presentation Style Identifier
9    ///
10    /// It specifies a request for the preferred emoji
11    /// presentation style. This can be used as part of the value for an HTML lang attribute,
12    /// for example `<html lang="sr-Latn-u-em-emoji">`.
13    /// The valid values are listed in [LDML](https://unicode.org/reports/tr35/#UnicodeEmojiPresentationStyleIdentifier).
14    [Default]
15    EmojiPresentationStyle {
16        /// Use an emoji presentation for emoji characters if possible
17        ("emoji" => Emoji),
18        /// Use a text presentation for emoji characters if possible
19        ("text" => Text),
20        /// Use the default presentation for emoji characters as specified in UTR #51 Presentation Style
21        [default]
22        ("default" => Default)
23}, "em");