XmStringToXmStringTable (3) Linux Manual Page
XmStringToXmStringTable — A convenience function that converts a single compound string to a table of compound strings
Synopsis
#include <Xm/Xm.h>Cardinal XmStringToXmStringTable(XmString string,XmString break_component,XmStringTable *table);
Description
XmStringToXmStringTable takes as input a single compound string and a specified string component (such as a tab) and returns a table of compound strings consisting of portions of string delimited by components matching break_component. The components marking breaks will not appear in the resulting table.
- string
- Specifies the
XmStringto be converted. - break_component
- Specifies the
XmStringComponentthat will be used to indicate where to split string to form the individual elements of table. The most useful types will beXmSTRING_COMPONENT_SEPARATORandXmSTRING_COMPONENT_TAB. Refer to theXmStringComponentType(3) reference page for a complete list of possible component types. Note, however, that theXmSTRING_COMPONENT_UNKNOWNcomponent is not a possible type. - table
- Returns the equivalent
XmStringTable. The function will allocate space to hold the returnedXmStringTable. When the applicaiton no longer needs the returnedXmStringTable, the application should callXmStringFreeonce for each compound string in the table, and then callingXtFreeto deallocate theXmStringTableitself.
Return
Returns the number of compound strings in table.
Related
XmStringTable(3).
