Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmstringtoxmstringtable(3) [redhat man page]

XmStringToXmStringTable(library call)									     XmStringToXmStringTable(library call)

NAME
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 XmString to be converted. break_component Specifies the XmStringComponent that will be used to indicate where to split string to form the individual elements of table. The most useful types will be XmSTRING_COMPONENT_SEPARATOR and XmSTRING_COMPONENT_TAB. Refer to the XmStringComponentType(3) refer- ence page for a complete list of possible component types. Note, however, that the XmSTRING_COMPONENT_UNKNOWN component is not a possible type. table Returns the equivalent XmStringTable. The function will allocate space to hold the returned XmStringTable. When the applicaiton no longer needs the returned XmStringTable, the application should call XmStringFree once for each compound string in the table, and then calling XtFree to deallocate the XmStringTable itself. RETURN
Returns the number of compound strings in table. RELATED
XmStringTable(3). XmStringToXmStringTable(library call)

Check Out this Related Man Page

XmStringToXmStringTable(library call)									     XmStringToXmStringTable(library call)

NAME
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 XmString to be converted. break_component Specifies the XmStringComponent that will be used to indicate where to split string to form the individual elements of table. The most useful types will be XmSTRING_COMPONENT_SEPARATOR and XmSTRING_COMPONENT_TAB. Refer to the XmStringComponentType(3) refer- ence page for a complete list of possible component types. Note, however, that the XmSTRING_COMPONENT_UNKNOWN component is not a possible type. table Returns the equivalent XmStringTable. The function will allocate space to hold the returned XmStringTable. When the applicaiton no longer needs the returned XmStringTable, the application should call XmStringFree once for each compound string in the table, and then calling XtFree to deallocate the XmStringTable itself. RETURN
Returns the number of compound strings in table. RELATED
XmStringTable(3). XmStringToXmStringTable(library call)
Man Page

3 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

replace part of single string in a file

hi! i have a file consisting of the following lines: (BTW, = space) . . . 12ME_T1mapping_flip30bshortf 13DCE_whole_brainbshortf 13DCE_3Dbshortf . . . the list of scans starts at 1 and goes on sometimes up to 60 scans. i would like to change only the lines that contain 'whole' to... (2 Replies)
Discussion started by: nixjennings
2 Replies

2. Shell Programming and Scripting

How to replace string

I have input file line as create table user_area But in abve line anything can come after create table , so I have to take from create table(space) to (next space) I want to change it to create table user_work (4 Replies)
Discussion started by: scorp_rahul23
4 Replies

3. Shell Programming and Scripting

Script in Perl or awk to remove multiple hyphens

Dear all, I have a database of compound words. I want to retain only strings with a single hyphen and identify those strings which have more than one hyphen. I am giving an example below test-test test-test-test test-test-test-test-test good-for-nothing The regex/script should remove all... (11 Replies)
Discussion started by: gimley
11 Replies