mtext_get_property(3m17n)
β¨ NAME β¨
mtext_get_property β bestie, this is the one that goes digging for a text property in your M-text π
πΈ SYNOPSIS πΈ
MTextProperty* mtext_get_property (MText * mt, int pos, MSymbol key)
π¦ DESCRIPTION π¦
okay so, mtext_get_property() is giving main character property-hunter energy. What it does is get the topmost text property π
Here's the vibe: it searches the character sitting at position pos inside the M-text mt, looking for a text property whose key is key. That's it, that's the whole mission π
π RETURN VALUE π
So like, what do you actually get back?
- If a text property is found,
mtext_get_property()returns it. Simple. Slay. β¨ - If there are multiple text properties chillin' there, it returns the topmost one β only the top one gets the spotlight, no cap π
- If no such property is found, it returns
NULLwithout changing the external variablemerror_code. So the error code stays exactly how you left it, no sneaky edits π
β οΈ But if an error is detected,mtext_get_property()returnsNULLand assigns an error code to the external variablemerror_code. So yeah βNULLcan mean "nope, nothing there" or "something went wrong", andmerror_codeis how you tell the difference π
π 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, bestie π«Ά this was Version 1.8.4, dated Mon Sep 25 2023, and it lives in the m17n library man pages β mwah, iconic, periodt π πΈ
π¦ 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