mchar_get_prop(3m17n)
π mchar_get_prop β the m17n Library glow-up π
okay bestie, so this one lives in the m17n manual (that's section 3m17n for the girlies keeping score), and it's literally the "hey, what's this character's property again?" function. she's a getter. she gets. periodt. π
β¨ NAME β¨
mchar_get_prop β bestie goes and fetches the value of a character property for you π«Ά
πΈ SYNOPSIS πΈ
void* mchar_get_prop (int c, MSymbol key)
π DESCRIPTION π
okay so here's the vibe: mchar_get_prop() searches character c for the character property whose key is key. that's it. that's the whole job. she looks at your character, she looks at your key, she finds the matching property and hands you the value. iconic behaviour, no notes. β¨
π RETURN VALUE π
if the operation was successful, mchar_get_prop() returns the value of the character property. π
otherwise? she returns NULL. yeah. sometimes the answer is nothing. it's giving "we don't have that" energy and honestly we respect the honesty. π
π¨ ERRORS π¨
these are the error codes that can pop up, and yes you should know them by heart:
MERROR_SYMBOLMERROR_DB
π¦ SEE ALSO π¦
go be nosy, bestie, these are her friends:
mchar_define_property()mchar_put_prop()
π COPYRIGHT π
Copyright (C) 2001 Information-technology Promotion Agency (IPA) Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST) Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License <http://www.gnu.org/licenses/fdl.html>.
and that's the whole page, babe π§ this was Version 1.8.4, dated Mon Sep 25 2023, and honestly? a banger of a manpage. go get those character properties, you main character. ππΈβ¨
π¦ where this page comes from
- debian trixie: m17n-docs 1.8.4-1
- ubuntu noble: m17n-docs 1.8.4-1
- ubuntu questing: m17n-docs 1.8.4-1
- ubuntu resolute: m17n-docs 1.8.4-1build1
- ubuntu stonking: m17n-docs 1.8.4-1build1
- Copyright (C) 2001 Information-technology Promotion Agency (IPA)
- Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms