UNICODE_EMOJI_LOOKUP(3)

πŸ’– UNICODE_EMOJI_LOOKUP πŸ’– (3)

okay so bestie, welcome to the Courier Unicode Library's emoji department, aka the place where your C code finally gets to ask the universe "is this character an emoji or not" and the universe answers in bitmasks 🫢 this one's unicode_emoji_lookup and its six little sibling functions, and yes they're all iconic.


🌸 NAME 🌸

unicode_emoji_lookup, unicode_emoji, unicode_emoji_presentation, unicode_emoji_modifier, unicode_emoji_modifier_base, unicode_emoji_component, unicode_emoji_extended_pictographic β€” look up a unicode character's Unicode Emoji Classification πŸ’…


✨ SYNOPSIS ✨

#include <courier-unicode.h>

unicode_emoji_t unicode_emoji_lookup(char32_t c);

int unicode_emoji(char32_t c);

int unicode_emoji_presentation(char32_t c);

int unicode_emoji_modifier(char32_t c);

int unicode_emoji_modifier_base(char32_t c);

int unicode_emoji_component(char32_t c);

int unicode_emoji_extended_pictographic(char32_t c);

πŸ¦‹ DESCRIPTION πŸ¦‹

so unicode_emoji_lookup() is the main character πŸ‘‘ β€” you hand it a character and it gives you back that character's unicode emoji properties, packaged as a bitmask of UNICODE_EMOJI flags. those flags live in the header file, so go peek there for the full menu, iykyk.

then there's the friend group. unicode_emoji(), unicode_emoji_presentation(), unicode_emoji_modifier(), unicode_emoji_modifier_base(), unicode_emoji_component(), and unicode_emoji_extended_pictographic() are all little vibe checks β€” each one checks whether the character you gave it carries one specific emoji property. they return 0 if not, and non-0 if your character does have that corresponding property. literally that simple, no cap. πŸ’―


🌈 SEE ALSO 🌈


πŸŽ€ AUTHOR πŸŽ€

Sam Varshavchik

  • Author

πŸ’œ NOTES πŸ’œ

  1. TR-51 https://www.unicode.org/reports/tr51/tr51-29.html

fr fr, that's the whole page. go check UNICODE_EMOJI flags in the header before you start throwing bitmasks around, bestie πŸ“

this was brought to you by the Courier Unicode Library, dated 04/12/2026, page number... well, the UNICODE_EMOJI_LOOKUP(3) section ofc. mwah πŸ’…βœ¨

πŸ“¦ where this page comes from