mtext_property_end(3m17n)

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

✨ NAME ✨

mtext_property_end β€” bestie, the name section is literally just the dash, the original page left it blank, so that's what we're working with πŸ’… (it's giving "mysterious", honestly)


πŸ¦‹ SYNOPSIS πŸ¦‹

int mtext_property_end (MTextProperty * prop)

πŸ’– DESCRIPTION πŸ’–

Okay so picture this: you've got a text property, right? A whole MTextProperty * prop. And you wanna know where it ends. That's it, that's the whole job. 🌸

mtext_property_end() returns the end position of the text property prop.

And like, what even is the end position, you ask? It's the character position of an M-text where prop ends. Character position, bestie, not byte position β€” don't get it twisted. πŸ‘‘

BUT β€” and this is the important part, don't skip it β€” if prop is detached, it returns -1. That's it. That's the vibe check. Detached property = no position for you = -1. 🫢

So like:

  • attached property β†’ the character position where it ends, slay ✨
  • detached property β†’ -1, tragic, no cap 😭

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>.


lowkey legal note: that's the GNU Free Documentation License, and yes the link is literally http://www.gnu.org/licenses/fdl.html β€” go read it if you're nosy, i support it πŸ’œ

and that's the whole page, bestie!! πŸŽ€ this was Version 1.8.4, dated Mon Sep 25 2023, straight from the m17n library's own manual, mtext_property_end(3m17n) β€” mwah, iconic, periodt πŸ’–βœ¨

πŸ“¦ where this page comes from