mtext_coll(3m17n)
β¨ NAME β¨
mtext_coll -
okay so bestie, the NAME section is literally just vibes and a dash, that's it, that's all the manpage gave us π the rest of the tea is down below π
πΈ SYNOPSIS πΈ
int mtext_coll (MText * mt1, MText * mt2)
π¦ DESCRIPTION π¦
okay so picture this: you got two M-texts and you need to know which one comes first, right? mtext_coll() is the girl for that job. She compares the two M-texts mt1 and mt2, using the current locale β like, the actual rules your system is living by right now.
And what does she hand back? An integer, bestie:
- an integer less than zero β
mt1is found to be less thanmt2 - an integer equal to zero β
mt1matchesmt2 - an integer greater than zero β
mt1is found to be greater thanmt2
And the comparison itself? It's based on texts as appropriate for the current locale, specifically LC_COLLATE. no cap, that's the whole rule π
π§ now here's the lil secret that makes her fast: this function makes use of information that is automatically cached in the M-texts as a text property. So the second call of this function withmt1ormt2finishes faster than the first call. she remembers. she's efficient. she ate π β¨
π 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, you're officially educated π this was Version 1.8.4, dated Mon Sep 25 2023, from the m17n manual β mwah, go forth and collate ππ¦π
π¦ 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