mtext_titlecase(3m17n)
β¨ 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 π
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
- 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