mtext_casecmp(3m17n)

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

πŸ’– mtext_casecmp β€” the m17n library's chill, case-blind comparison πŸ’–

okay bestie, welcome to mtext_casecmp(3m17n), a page from The m17n Library manual. yes it's a real manual page, yes it's 3m17n, yes we're doing this together 🫢


✨ SYNOPSIS ✨

int mtext_casecmp (MText * mt1, MText * mt2)

like. that's it. two M-Texts walk into a function and we find out which one is bigger. iconic behavior honestly 🌸


🌸 DESCRIPTION 🌸

so the whole vibe of mtext_casecmp() is: compare two M-texts while ignoring cases. that's the job. that's the entire job.

she's basically mtext_cmp()'s cooler twin β€” literally the same energy, same comparison, except she does NOT care about case when she compares. capital A, lowercase a, doesn't matter, she's not looking πŸ‘‘ ngl that's main character energy fr fr.


πŸŽ€ RETURN VALUE πŸŽ€

she gives you back exactly one of three little numbers, and each one is a whole mood:

  • 1 β€” mt1 is greater than mt2 πŸ’…
  • 0 β€” they're equal ✨ (the best outcome, obviously)
  • -1 β€” mt1 is less than mt2 πŸ₯²
so like: greater β†’ 1, equal β†’ 0, less β†’ -1. that's the order. don't get it twisted bestie πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group, go say hi:

  • mtext_cmp()
  • mtext_ncmp()
  • mtext_ncasecmp()
  • mtext_compare()
  • mtext_case_compare()

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 page, bestie!! πŸŽ€ this was Version 1.8.4, dated Mon Sep 25 2023, straight from the mtext_casecmp(3m17n) corner of the m17n manual. go forth and compare case-insensitively, you absolute legend πŸŒˆπŸ’–

πŸ“¦ where this page comes from