UNICODE_CATEGORY_LOO(3)
π UNICODE_CATEGORY_LOO(3) π
okay bestie, welcome to the UNICODE_CATEGORY_LOO(3) page from the Courier Unicode Library β yes the whole page is literally about figuring out what kind of character you're looking at, and honestly? iconic. let's get into it π¦
β¨ NAME β¨
unicode_category_lookup, unicode_isalnum, unicode_isalpha, unicode_isblank, unicode_isdigit, unicode_isgraph, unicode_islower, unicode_ispunct, unicode_isspace, unicode_isupper β unicode character categorization π
πΈ SYNOPSIS πΈ
#include <courier-unicode.h>
uint32_t unicode_category_lookup(char32_t c);
int unicode_isalnum(char32_t c);
int unicode_isalpha(char32_t c);
int unicode_isblank(char32_t c);
int unicode_isdigit(char32_t c);
int unicode_isgraph(char32_t c);
int unicode_islower(char32_t c);
int unicode_ispunct(char32_t c);
int unicode_isspace(char32_t c);
int unicode_isupper(char32_t c);
π DESCRIPTION π
so unicode_category_lookup() is the main character here: it looks up the unicode character's categorization[1]. and it hands you back a 32 bit value, no cap.
the way that value works: its UNICODE_CATEGORY_1 bits tell you the first level of the unicode character's category. then UNICODE_CATEGORY_2, UNICODE_CATEGORY_3, and UNICODE_CATEGORY_4 bits specify the 2nd, 3rd, and 4th level, if given. π«
if the bits for a level are all set to 0, that means no category is specified for this level, for this character. otherwise, the possible values live in <courier-unicode.h> π
π the rest of the girlies π
these ones are the unicode glow-up of their non-unicode versions in the standard C library, fr fr:
unicode_isalnum()β returns non-0 for allunicode_isalpha()orunicode_isdigit(). basically "is it a letter OR a number" energy β¨unicode_isalpha()β returns non-0 for allUNICODE_CATEGORY_1_LETTER. letters only, periodt π€unicode_isblank()β returns non-0 forTAB, and allUNICODE_CATEGORY_2_SPACEπ«§unicode_isdigit()β returns non-0 for allUNICODE_CATEGORY_1_NUMBER | UNICODE_CATEGORY_2_DIGIT, only β no third categories bestie, that's the whole vibe π’unicode_isgraph()β returns non-0 for all codepoints aboveSPACEwhich are notunicode_isspace()πunicode_islower()β returns non-0 for allunicode_isalpha()for which the character is equal tounicode_lc(3)of itself. lowercase girlies rise π₯°unicode_ispunct()β returns non-0 for allUNICODE_CATEGORY_1_PUNCTUATIONβββΌοΈunicode_isspace()β returns non-0 forunicode_isblank()or for unicode characters with linebreaking properties ofBK,CR,LF,NL, andSPπunicode_isupper()β returns non-0 for allunicode_isalpha()for which the character is equal tounicode_uc(3)of itself. uppercase icon behavior π
π₯ SEE ALSO π₯
π AUTHOR π
Sam Varshavchik
- Author π«Ά
π NOTES π
- unicode character's categorization
https://unicode.org/notes/tn36/
okay that's the whole page, you ate that π§β¨ and for the sign-off: this lovely lil manual page is from the Courier Unicode Library, dated 04/12/2026 β go forth and categorize ur characters responsibly bestie, 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