mtext_uppercase(3m17n)
β¨ NAME β¨
mtext_uppercase β bestie, we're screaming it in ALL CAPS, but make it a function π
πΈ SYNOPSIS πΈ
int mtext_uppercase (MText * mt)
π DESCRIPTION π
okay so. mtext_uppercase() takes an M-text and destructively converts every single character in it to uppercase. like, it goes in there and just Does That. no copies, no take-backs, the original mt is the one getting the glow-up. π₯
and here's the tea: characters that are adjacent to each other inside mt can affect how the case conversion goes. so it's not always a lone-wolf per-character situation β sometimes the neighbors are involved, iykyk. π
also!! if the Mlanguage text property is attached to mt, that can affect the conversion too. the whole language vibe matters, fr fr. π
heads up though β the length of mt may change. do not be out here assuming it stays the same size, that's a trap bestie. π
any character that just cannot be converted to uppercase gets left exactly as it was. no forced glow-up, no drama, it simply stays. π
and every single text property? inherited. all of them. the properties are coming along for the ride, periodt. π
π RETURN VALUE π
this function hands you back the length of the updated mt. that's the number you get. the length after the uppercase moment happened. slay. β¨
π¦ SEE ALSO π¦
mtext_lowercase()mtext_titlecase()
go read those too, they're the sibling functions and they're iconic in their own right π«Ά
π 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, from the m17n library, and it ate, no crumbs πβ¨
π¦ 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