XmStringGetNextSegment(3X)XmStringGetNextSegment(3X)NAME
XmStringGetNextSegment - A compound string function that fetches the octets in the next segment of a compound string
SYNOPSIS
#include <Xm/Xm.h>
Boolean XmStringGetNextSegment (context, text, tag, direction, separator)
XmStringContext context;
char **text;
XmStringCharSet *tag;
XmStringDirection *direction;
Boolean *separator;
DESCRIPTION
XmStringGetNextSegment fetches the octets in the next segment; repeated calls fetch sequential segments. The text, tag, and direction of
the fetched segment are returned each time. A Boolean status is returned to indicate whether a valid segment was successfully parsed.
Specifies the string context structure which was allocated by the XmStringInitContext function. Specifies a pointer to a null terminated
string. Specifies a pointer to the font list element tag associated with the text. Specifies a pointer to the direction of the text.
Specifies whether the next component of the compound string is a separator.
RETURN VALUE
Returns True if a valid segment is found.
SEE ALSO XmStringCreate(3X), XmStringInitContext(3X)XmStringGetNextSegment(3X)
Check Out this Related Man Page
XmStringGetNextComponent(3X)XmStringGetNextComponent(3X)NAME
XmStringGetNextComponent - A compound string function that returns the type and value of the next component in a compound string
SYNOPSIS
#include <Xm/Xm.h>
XmStringComponentType XmStringGetNextComponent (context, text, tag, direction, unknown_tag, unknown_length, unknown_value)
XmStringContext context;
char **text;
XmStringCharSet *tag;
XmStringDirection *direction;
XmStringComponentType *unknown_tag;
unsigned short *unknown_length;
unsigned char **unknown_value;
DESCRIPTION
XmStringGetNextComponent returns the type and value of the next component in the compound string identified by context. It is a low-level
component function. Components are returned one at a time. On return, only some output parameters will be valid; which ones can be deter-
mined by examining the return status. In the case of text, tag, and direction components, only one output parameter is valid. If the
return status indicates an unknown component was encountered, the font list element tag, length, and value are returned. This function
allocates the space necessary to hold returned values; freeing this space is the caller's responsibility. Specifies the string context
structure which was allocated by the XmStringInitContext function. Specifies a pointer to a null terminated string. Specifies a pointer
to the font list element tag associated with the text. The value XmFONTLIST_DEFAULT_TAG identifies a locale text segment. Specifies a
pointer to the direction of the text. Specifies a pointer to the tag of an unknown component. Specifies a pointer to the length of an
unknown component. Specifies a pointer to the value of an unknown component.
RETURN VALUE
Returns the type of component found. Following are the possible values: XmSTRING_COMPONENT_CHARSET
This component is obsolete and remains for compatibility with previous releases. It has been replaced by XmSTRING_COMPO-
NENT_FONTLIST_ELEMENT_TAG. XmSTRING_COMPONENT_FONTLIST_ELEMENT_TAG XmSTRING_COMPONENT_LOCALE_TEXT XmSTRING_COMPONENT_TAG
XmSTRING_COMPONENT_TEXT XmSTRING_COMPONENT_DIRECTION XmSTRING_COMPONENT_SEPARATOR XmSTRING_COMPONENT_END XmSTRING_COMPONENT_UNKNOWN
SEE ALSO XmStringCreate(3X), XmStringInitContext(3X)XmStringGetNextComponent(3X)
Hi,
Suppose I have the following text in a file.
ORA-00942: table or view does not exist
ORA-01555: snapshot too old: rollback segment number string with name "string"
too small
Is there any way I can list all the text that starts only with 'ORA-'?
Or there any grep command that can... (7 Replies)
Hi,
I am using bash. My question concerns cutting out segments of a string. Given the following filename:
S2002254132542.L1A_MLAC.x.hdf
I have been able to successfully separate the string at the periods (.):
$ L1A_FILE=S2002254132542.L1A_MLAC.x.hdf
$ BASE=$(echo $L1A_FILE | awk -F.... (5 Replies)
Hi,
Whether the following piece of code is placed in the read-only memory of code (text) segment or data segment?
char *a = "Hello";
I am getting two different answers while searching in google :( that's why the confusion is (7 Replies)
I have a text file where I need to find the string = ST*850*
This string is repetaed several times in the file, so I need to know how many times it appears in the file, this is the text files:
ISA*00* *00* *08*925485USNR *ZZ*IMSALADDERSP... (13 Replies)
I need to read in the string from input file and reform it by cut each segment and check the last segement lenght. If the last segment length is not as expected (see below segment file or table. It is predefined), then pad enough space.
Old string
FU22222222CA6666666666AKxvbFMddreeadBP999... (1 Reply)
Hi guys ,
i got segment fault , and when i trace , found it happens since the value of pointer which is returned by Struct S_client (*ptr) is zero
if (ptr !=0)i know , adding above line of code is not the solution and not correct for the case since above line only check for the pointer... (1 Reply)
Hi Seders,
i am new to this forum, but i think it's quite the best place to post.
So, here is my pb :
I have a csv file, with comma separator and text enclosed by ".
First pb is with text in " ......... ", wich sometimes includes lines break, and commas
And to complicate a little more,... (4 Replies)