XMSTRINGCOMPARE(3)
β¨ 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 withs2πs2β specifies a compound string to be compared withs1β¨
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 π
π§ RELATED π§
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 π«Άβ¨π
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms