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 π
TR-51[1]courier-unicode(7)
π AUTHOR π
Sam Varshavchik
- Author
π NOTES π
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
- nixpkgs unstable: courier-unicode 2.6.0
- ubuntu stonking: libcourier-unicode-dev 2.6.0-2ubuntu1 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms