XMSTRINGHASSUBSTRING(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

🌸 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 πŸ‘€


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 🫢✨