mtext_attach_property(3m17n)
β¨ NAME β¨
mtext_attach_property β the one where you stick a text property onto an M-text π
(yes bestie, that's literally the whole name, the manpage left the description blank and we are respecting that)
π SYNOPSIS π
int mtext_attach_property (MText * mt, int from, int to, MTextProperty *
prop)
π¦ DESCRIPTION π¦
Okay so picture this: you've got an M-text, you've got a text property, and you want them together. That's the whole job of mtext_attach_property(). πΈ
It attaches the text property prop to the range between from and to in the M-text mt.
And here's the lil plot twist π β if prop is already attached to an M-text, it gets detached first, and only then does it get attached to mt. So it's not a situationship, it's exclusive. No property is out here two-timing multiple M-texts. Periodt. π
β RETURN VALUE β
- If everything went great and the operation was successful,
mtext_attach_property()returns0. slay, we love a zero β¨ - Otherwise it returns
-1, and it assigns an error code to the external variablemerror_code. so if you see that-1, go checkmerror_code, bestie, it's trying to tell you something π
π 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 π«Ά go attach some properties responsibly π
Version 1.8.4 β Mon Sep 25 2023 β mtext_attach_property(3m17n) πππ
π¦ 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