XMSTRINGCOMPARE(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

✨ XmStringCompare ✨

okay bestie, welcome to the library call corner of the man pages πŸ’– this one's called XmStringCompare, and it's a compound string function that compares two strings. yes, it's exactly as iconic as it sounds πŸŽ€


🌸 NAME 🌸

XmStringCompare β€” a compound string function that compares two strings. two strings walk into a function... and only one Boolean comes out 😭


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <Xm/Xm.h>
Boolean XmStringCompare(
XmString s1,
XmString s2);

πŸ’… DESCRIPTION πŸ’…

so here's the tea β˜• XmStringCompare hands you back a Boolean value, and that Boolean is telling you the results of a semantically equivalent comparison of two compound strings. not a vibes comparison. a semantic one. very serious. very main character. πŸ‘‘

and what does semantically equivalent even mean, you ask? it means the strings have the same:

  • text components
  • font list element tags
  • directions
  • separators

like, all four. every single one. no skipping. periodt πŸ’…

in general, if two compound strings are created with the same (char *) string using XmStringCreateLocalized in the same language environment, the compound strings compare as equal. and if two compound strings are created with the same text and tag argument using XmStringCreate, the strings compare as equal. fr fr, that's the whole bit 🫢

  • s1 β€” specifies a compound string to be compared with s2 πŸ’–
  • s2 β€” specifies a compound string to be compared with s1 ✨

they compare each other. it's mutual. it's giving healthy relationship 🌈


⭐ RETURN ⭐

returns True if two compound strings are equivalent. that's it. that's the answer. no nuance, no edge cases listed here, just True when they match πŸŽ€


go read those too, bestie, they're the ones doing the creating while this one does the judging πŸ’€


and that's the whole page!! this was XmStringCompare from the library call manual, mwah, slay, go forth and compare your compound strings responsibly πŸ«Άβœ¨πŸŽ€