mtext_get_properties(3m17n)

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

✨ mtext_get_properties ✨

okay so bestie, welcome to the m17n Library manual page for mtext_get_properties β€” that's a <cyan>3m17n</cyan> section situation, iykyk πŸ’…


🌸 NAME 🌸

mtext_get_properties β€” grab a whole lil squad of text properties at once 🫢


πŸŽ€ SYNOPSIS πŸŽ€

int mtext_get_properties (MText * mt, int pos, MSymbol key,
       MTextProperty ** props, int num)

πŸ’– DESCRIPTION πŸ’–

So like. You know how a single character can be carrying multiple properties at the same time? Yeah. This function is the one that goes and fetches them. Get multiple text properties. ✨

The mtext_get_properties() function searches the character at pos in M-text mt for properties whose key is key. πŸ”

If such properties are found, they are stored in the memory area pointed to by props. And num is the vibe check on how many you're allowed to take β€” it limits the maximum number of stored properties. πŸ‘‘


⭐ RETURN VALUE ⭐

  • If the operation was successful, mtext_get_properties() returns the number of actually stored properties. πŸŽ‰
  • If the character at pos does not have a property whose key is key, the return value is 0. (sad girl hours, no properties for you 😭)
  • If an error is detected, mtext_get_properties() returns -1 and assigns an error code to the external variable merror_code. πŸ’€
ngl bestie, if you see that -1, go check merror_code immediately. fr fr.

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, periodt πŸ’… this was Version 1.8.4, dated Mon Sep 25 2023, and it's the mtext_get_properties(3m17n) manual β€” slay, go get those properties bestie πŸ¦‹βœ¨

πŸ“¦ where this page comes from