15 Ekim 2023 Pazar

Character Sınıfı Emoji Metodları

Giriş
Açıklaması şöyle
Over the years, Emojis gained more and more properties, like different color shades and combined presentations. To make identification easier, the Character type gained 6 new static methods
isEmoji metodu
İmzası şöyle
boolean isEmoji(int codePoint)
Java 21 ile geliyor. Açıklaması şöyle
This method determines whether a character is considered an emoji based on its Unicode properties defined in Unicode Emoji (Unicode Emoji Technical Standard #51). For example, executing Character.isEmoji(9203) would return true for the character ⏳, which has the code point 9203.
Örnek
Şöyle yaparız
boolean isEmoji = Character.isEmoji(9203);
System.out.println(isEmoji);
isEmojiPresentation metodu
İmzası şöyle
boolean isEmojiPresentation(int codePoint)
Java 21 ile geliyor. Açıklaması şöyle
Similar to isEmoji(), this method checks if a character has the Emoji Presentation property. It helps identify characters that display as emojis when rendered.
isEmojiModifier metodu
İmzası şöyle
boolean isEmojiModifier(int codePoint)
isEmojiModifierBase metodu
İmzası şöyle
boolean isEmojiModifierBase(int codePoint)
isEmojiComponent metodu
İmzası şöyle
boolean isEmojiComponent(int codePoint)
 isExtendedPictographic metodu
İmzası şöyle
boolean isExtendedPictographic(int codePoint)



















Hiç yorum yok:

Yorum Gönder