mtext_put_prop_values(3m17n)
β¨ mtext_put_prop_values β the m17n Library's "set a whole lil squad of properties at once" era β¨
okay bestie, sit down, hydrate, because we're talking about mtext_put_prop_values(3m17n) from the m17n Library and honestly? it's giving efficiency queen. π
π SYNOPSIS π
int mtext_put_prop_values (MText * mt, int from, int to, MSymbol key,
void ** values, int num)
like. look at her. six arguments. main character energy fr fr. π
πΈ DESCRIPTION πΈ
so basically this function's whole thing is setting multiple text properties that all share the same key. one key, many values, no drama. π«Ά
The mtext_put_prop_values() function sets a text property to the characters between from (inclusive, bestie, we're counting that one in) and to (exclusive, she's not invited) in M-text mt.
key and values specify the key and the values of the text property. And num specifies the number of property values to be set. like it literally just tells the function how many values are coming through the door. that's it. that's the job. π
π RETURN VALUE π
- If the operation was successful,
mtext_put_prop_values()returns0. slay. iconic. no notes. β¨ - Otherwise it returns
-1and assigns an error code to the external variablemerror_code. π and you WILL checkmerror_code, okay? it's right there. waiting.
π₯ ERRORS π₯
MERROR_RANGEMERROR_SYMBOL
bestie these are the two ways it can go wrong and it will absolutely tell on itself through merror_code. don't ignore her. π
π¦ SEE ALSO π¦
the whole friend group, obviously. they run together, they stay together:
mtext_put_prop()mtext_get_prop()mtext_get_prop_values()mtext_push_prop()mtext_pop_prop()mtext_prop_range()
iykyk π
π 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>.
Version 1.8.4 π and it was dated Mon Sep 25 2023 β so yes, she's a 2023 girlie, the m17n Library said "let me serve one more time" and she ATE. π
Version 1.8.4 Β· Mon Sep 25 2023 Β· mtext_put_prop_values(3m17n) β okay bye bestie, go set those properties, mwah ππ§
π¦ 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