XMSTRINGHASSUBSTRING(3)
πΈ NAME πΈ
XmStringHasSubstring β a compound string function that tells you whether one compound string is contained within another π
β¨ SYNOPSIS β¨
#include <Xm/Xm.h>
Boolean XmStringHasSubstring(
XmString string,
XmString substring);
π DESCRIPTION π
Okay bestie, listen up, because this one is lowkey the simplest little queen in the whole compound string family. XmStringHasSubstring just tells you whether or not one compound string is contained within another. That's it. That's the whole vibe. It's giving "is this in that" and nothing more π
Here's the tea on the two things you hand it:
stringβ the compound string to be searched. This is the big one, the main character, the one we're digging around in π΅οΈβοΈsubstringβ the compound string to be searched for. The little one we're hunting for inside it π
π RETURN π
It returns True if substring has a single text component and if its text is completely contained within any single text component of string. Otherwise? It returns False. No cap, those are the only two options β it's not out here giving you a maybe π
Heads up though, the way that "single text component" clause works is doing a LOT of heavy lifting here, so don't come for it if your multi-component substring doesn't hit the way you expected π
π¦ RELATED π¦
And that's the whole page, bestie β mwah π This one lives in the library call manual section, straight from the XmStringHasSubstring(library call) corner of the docs. Go forth and substring 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