UNICODE_DERIVED_CORE(3)

πŸ“¦
version 2.6.0 Β· 4 versions
, in nixpkgs unstable, ubuntu stonking

πŸ’– UNICODE_DERIVED_CORE β€” bestie edition πŸ’–

okay so real talk, this is UNICODE_DERIVED_CORE(3) from the Courier Unicode Library, and it's literally a whole squad of nineteen little lookup girlies. They all do the same cute thing: you hand them a character, they tell you the tea about its derived core properties. no cap, that's the whole job. πŸŽ€

This is unicode_derived_core_properties.


✨ NAME ✨

unicode_derived_core_properties, unicode_derived_case_ignorable_lookup, unicode_derived_cased_lookup, unicode_derived_changes_when_casefolded_lookup, unicode_derived_changes_when_casemapped_lookup, unicode_derived_changes_when_lowercased_lookup, unicode_derived_changes_when_titlecased_lookup, unicode_derived_changes_when_uppercased_lookup, unicode_derived_default_ignorable_code_point_lookup, unicode_derived_grapheme_base_lookup, unicode_derived_grapheme_extend_lookup, unicode_derived_grapheme_link_lookup, unicode_derived_id_continue_lookup, unicode_derived_id_start_lookup, unicode_derived_incb_lookup, unicode_derived_lowercase_lookup, unicode_derived_math_lookup, unicode_derived_uppercase_lookup, unicode_derived_xid_continue_lookup, unicode_derived_xid_start_lookup β€” they look up derived core properties πŸ’…


🌸 SYNOPSIS 🌸

int unicode_derived_case_ignorable_lookup(char32_t c);

int unicode_derived_cased_lookup(char32_t c);

int unicode_derived_changes_when_casefolded_lookup(char32_t c);

int unicode_derived_changes_when_casemapped_lookup(char32_t c);

int unicode_derived_changes_when_lowercased_lookup(char32_t c);

int unicode_derived_changes_when_titlecased_lookup(char32_t c);

int unicode_derived_changes_when_uppercased_lookup(char32_t c);

int unicode_derived_default_ignorable_code_point_lookup(char32_t c);

int unicode_derived_grapheme_base_lookup(char32_t c);

int unicode_derived_grapheme_extend_lookup(char32_t c);

int unicode_derived_grapheme_link_lookup(char32_t c);

int unicode_derived_id_continue_lookup(char32_t c);

int unicode_derived_id_start_lookup(char32_t c);

int unicode_derived_incb_lookup(char32_t c);

int unicode_derived_lowercase_lookup(char32_t c);

int unicode_derived_math_lookup(char32_t c);

int unicode_derived_uppercase_lookup(char32_t c);

int unicode_derived_xid_continue_lookup(char32_t c);

int unicode_derived_xid_start_lookup(char32_t c);

πŸ¦‹ DESCRIPTION πŸ¦‹

So the way this works is: every one of these functions takes a character and looks up its various derived core properties. That's it. That's the gig. main character energy, honestly. πŸ‘‘

One of them is the special one though, and you gotta know which πŸ‘€ β€” unicode_derived_incb_lookup() returns one of the UNICODE_DERIVED_INCB_value values from courier-unicode.h. Not a yes/no, an actual value, iykyk.

All the others β€” literally every single one of the other eighteen β€” return a non-0 value if the character has that derived property. So like, non-zero means "yep she's got it", and if it's not that, she doesn't. simple as. πŸ’…

bestie reminder: unicode_derived_incb_lookup() does NOT follow the non-zero rule, it's out here handing you a whole UNICODE_DERIVED_INCB_value instead. don't get caught lacking. 🫢

🌈 SEE ALSO 🌈


πŸ’œ AUTHOR πŸ’œ

Sam Varshavchik

  • Author

πŸ“ NOTES πŸ“

  1. TR-44 https://www.unicode.org/reports/tr44/

that's the whole page, periodt. ✨ this was Courier Unicode Library, version 04/12/2026, serving up UNICODE_DERIVED_CORE(3) β€” go forth and look up those properties, you absolute icon πŸ‘‘πŸ’–

πŸ“¦ where this page comes from