mtext_put_prop_values(3m17n)

πŸ“¦
version 1.8.4 Β· 2 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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() returns 0. slay. iconic. no notes. ✨
  • Otherwise it returns -1 and assigns an error code to the external variable merror_code. 😭 and you WILL check merror_code, okay? it's right there. waiting.

πŸ”₯ ERRORS πŸ”₯

  • MERROR_RANGE
  • MERROR_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 (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