DOKK / manpages / debian 12 / libmotif-dev / XmStringHasSubstring.3.en
XmStringHasSubstring(3) Library Functions Manual XmStringHasSubstring(3)

XmStringHasSubstring — A compound string function that indicates whether one compound string is contained within another "XmStringHasSubstring" "compound string functions" "XmStringHasSubstring"

#include <Xm/Xm.h>
Boolean XmStringHasSubstring(
XmString string,
XmString substring);

XmStringHasSubstring indicates whether or not one compound string is contained within another.

Specifies the compound string to be searched
Specifies the compound string to be searched for

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.

XmStringCreate(3) and XmStringCreateLocalized(3).