[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]
Motif 2.1 Programmer's Reference
XmStringTableUnparse
A convenience function that converts a table of compound strings to an
array of text
Format
#include <Xm/Xm.h>
XtPointer * XmStringTableUnparse
XmStringTable
tableCardinal countXmStringTag
tagXmTextType tag_typeXmTextType
output_typeXmParseTable
parseCardinal
parse_countXmParseModel
parse_model
DESCRIPTION
XmStringTableUnparse takes an array of compound strings, allocates a string
array for the type of characters determined by type with an equal
number of slots, calls XmStringUnparse on each compound string in
table, and inserts the resulting string in the corresponding slot in
the array.
tableSpecifies an XmStringTable containing the compound string to be converted.
countSpecifies the number of compound strings in table.
tagSpecifies the tag to be used in matching with text segments. The two types
of tag types are XmFONTLIST_DEFAULT_TAG and _MOTIF_DEFAULT_LOCALE. Only
segments tagged with tag will be returned. If tag is
NULL, all segments will be matched.
tag_typeSpecifies the type of tag to be searched for. These types include
XmMULTIBYTE_TEXT, XmWIDECHAR_TEXT, and XmCHARSET_TEXT.
output_typeSpecifies the type of text to be generated. These types include
XmMULTIBYTE_TEXT, XmWIDECHAR_TEXT, and XmCHARSET_TEXT.
parseSpecifies the parse table to be used.
parse_countSpecifies the number of items in parse.
parse_modelSpecifies which non-text components to be considered in matching in
parse_table. Possible values are:
XmOUTPUT_ALLPuts out all matching components.
XmOUTPUT_BETWEENPuts out only those matching components that are between two matching text
components.
XmOUTPUT_BEGINNINGPuts out only those matching components that are at the beginning of a
matching text component.
XmOUTPUT_ENDPuts out only those matching components that are at the end of a matching
text component.
XmOUTPUT_BOTHPuts out only those matching components that are at the beginning or end
of a matching text component.
RETURN
Returns an allocated array of allocated strings. The application is
responsible for managing the allocated space. The application can recover the
allocated strings space by calling XtFree count times (that is, one
time for each allocated string). The application can then recover the
allocated array by calling XtFree on the allocated array itself.
RELATED
XmStringTab.
[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]