1///|2/// Check the Unicode Extended_Pictographic property, including reserved3/// code points intended for future emoji. Used by UAX #14 and UAX #29.4pub fn is_extended_pictographic(c : Char) -> Bool {5 @emoji.is_extended_pictographic(c)6}78///|9/// Check whether a character has the Unicode Emoji_Presentation property.10///11/// Emoji_Presentation covers the characters displayed as emoji by default.12/// It is narrower than the Emoji property: U+2764 HEAVY BLACK HEART and the13/// ASCII digits are emoji only when followed by U+FE0F VARIATION SELECTOR-16.14/// See UTS #51: https://www.unicode.org/reports/tr51/15pub fn is_emoji_presentation(c : Char) -> Bool {16 @emoji.is_emoji_presentation(c)17}1819///|20/// Check whether a character has the Unicode Emoji_Modifier property.21///22/// Emoji_Modifier covers the five skin tone modifiers U+1F3FB to U+1F3FF.23pub fn is_emoji_modifier(c : Char) -> Bool {24 @emoji.is_emoji_modifier(c)25}2627///|28/// Check whether a character has the Unicode Emoji_Modifier_Base property.29///30/// Emoji_Modifier_Base covers the characters whose appearance a following31/// Emoji_Modifier changes, such as U+1F44D THUMBS UP SIGN.32pub fn is_emoji_modifier_base(c : Char) -> Bool {33 @emoji.is_emoji_modifier_base(c)34}3536///|37/// Check whether a character starts an emoji variation sequence.38///39/// These are the characters `emoji-variation-sequences.txt` lists: each can40/// be followed by U+FE0E VARIATION SELECTOR-15 to ask for a text41/// presentation or by U+FE0F VARIATION SELECTOR-16 to ask for an emoji42/// presentation. The set contains characters on both sides of43/// Emoji_Presentation, such as U+2764 HEAVY BLACK HEART, which is text by44/// default, and U+231A WATCH, which is emoji by default. Most emoji are not45/// in it, since they have no text presentation to select.46pub fn has_emoji_variation_sequence(c : Char) -> Bool {47 @emoji.has_emoji_variation_sequence(c)48}49
///|
/// Check the Unicode Extended_Pictographic property, including reserved
/// code points intended for future emoji. Used by UAX #14 and UAX #29.
pub fn is_extended_pictographic(c : Char) -> Bool {
@emoji.is_extended_pictographic(c)
}
///|
/// Check whether a character has the Unicode Emoji_Presentation property.
///
/// Emoji_Presentation covers the characters displayed as emoji by default.
/// It is narrower than the Emoji property: U+2764 HEAVY BLACK HEART and the
/// ASCII digits are emoji only when followed by U+FE0F VARIATION SELECTOR-16.
/// See UTS #51: https://www.unicode.org/reports/tr51/
pub fn is_emoji_presentation(c : Char) -> Bool {
@emoji.is_emoji_presentation(c)
}
///|
/// Check whether a character has the Unicode Emoji_Modifier property.
///
/// Emoji_Modifier covers the five skin tone modifiers U+1F3FB to U+1F3FF.
pub fn is_emoji_modifier(c : Char) -> Bool {
@emoji.is_emoji_modifier(c)
}
///|
/// Check whether a character has the Unicode Emoji_Modifier_Base property.
///
/// Emoji_Modifier_Base covers the characters whose appearance a following
/// Emoji_Modifier changes, such as U+1F44D THUMBS UP SIGN.
pub fn is_emoji_modifier_base(c : Char) -> Bool {
@emoji.is_emoji_modifier_base(c)
}
///|
/// Check whether a character starts an emoji variation sequence.
///
/// These are the characters `emoji-variation-sequences.txt` lists: each can
/// be followed by U+FE0E VARIATION SELECTOR-15 to ask for a text
/// presentation or by U+FE0F VARIATION SELECTOR-16 to ask for an emoji
/// presentation. The set contains characters on both sides of
/// Emoji_Presentation, such as U+2764 HEAVY BLACK HEART, which is text by
/// default, and U+231A WATCH, which is emoji by default. Most emoji are not
/// in it, since they have no text presentation to select.
pub fn has_emoji_variation_sequence(c : Char) -> Bool {
@emoji.has_emoji_variation_sequence(c)
}