mtext_titlecase(3m17n)

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

✨ NAME ✨

mtext_titlecase β€” okay so this is the girl that takes your M-text and gives it Title Case energy πŸ’… (the manpage literally just says mtext_titlecase - and nothing else, so bestie, we're working with vibes and the description below)


🌸 SYNOPSIS 🌸

int mtext_titlecase (MText * mt)

πŸŽ€ DESCRIPTION πŸŽ€

So like, mtext_titlecase() destructively converts your M-text, okay? Not a copy, not a lil preview β€” it goes in and changes mt fr fr. 😭

Here's the tea: the first character with the cased property in the M-text mt gets converted to titlecase, and all the others get converted to lowercase. That's it, that's the whole plot. πŸ‘‘

Heads up bestie: the length of mt may change. So don't be out here holding onto an old length like it's still valid, because it might not be. πŸ’€

And if a character cannot be converted to titlecase? It just gets left unchanged. No drama, no crash, she simply stays as she is. πŸ¦‹

Oh and also β€” all the text properties are inherited. So all that property goodness carries over. Periodt. ✨


πŸ’– RETURN VALUE πŸ’–

She returns the length of the updated mt. That's your number, that's your answer, slay. πŸ”₯


🌈 SEE ALSO 🌈

  • mtext_lowercase()
  • mtext_uppercase()

(the whole lowercase/uppercase/titlecase trio, 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>.


and that's the whole page, bestie!! βœ¨πŸ’–πŸŽ€ this was Version 1.8.4, dated Mon Sep 25 2023, and it's living in the mtext_titlecase(3m17n) section of the m17n Library manpages. go forth and titlecase responsibly πŸ¦‹πŸ’…πŸŒΈ

πŸ“¦ where this page comes from