Blame doc/man/man3/XmStringTableUnparse.3

Packit b099d7
'\" t
Packit b099d7
...\" StrTaE.sgm /main/7 1996/09/08 21:07:43 rws $
Packit b099d7
.de P!
Packit b099d7
.fl
Packit b099d7
\!!1 setgray
Packit b099d7
.fl
Packit b099d7
\\&.\"
Packit b099d7
.fl
Packit b099d7
\!!0 setgray
Packit b099d7
.fl			\" force out current output buffer
Packit b099d7
\!!save /psv exch def currentpoint translate 0 0 moveto
Packit b099d7
\!!/showpage{}def
Packit b099d7
.fl			\" prolog
Packit b099d7
.sy sed -e 's/^/!/' \\$1\" bring in postscript file
Packit b099d7
\!!psv restore
Packit b099d7
.
Packit b099d7
.de pF
Packit b099d7
.ie     ?\\*(f1?? .ds f1 \\n(.f
Packit b099d7
.el .ie ?\\*(f2?? .ds f2 \\n(.f
Packit b099d7
.el .ie ?\\*(f3?? .ds f3 \\n(.f
Packit b099d7
.el .ie ?\\*(f4?? .ds f4 \\n(.f
Packit b099d7
.el .tm ? font overflow
Packit b099d7
.ft \\$1
Packit b099d7
..
Packit b099d7
.de fP
Packit b099d7
.ie     !?\\*(f4?? \{\
Packit b099d7
.	ft \\*(f4
Packit b099d7
.	ds f4\"
Packit b099d7
'	br \}
Packit b099d7
.el .ie !?\\*(f3?? \{\
Packit b099d7
.	ft \\*(f3
Packit b099d7
.	ds f3\"
Packit b099d7
'	br \}
Packit b099d7
.el .ie !?\\*(f2?? \{\
Packit b099d7
.	ft \\*(f2
Packit b099d7
.	ds f2\"
Packit b099d7
'	br \}
Packit b099d7
.el .ie !?\\*(f1?? \{\
Packit b099d7
.	ft \\*(f1
Packit b099d7
.	ds f1\"
Packit b099d7
'	br \}
Packit b099d7
.el .tm ? font underflow
Packit b099d7
..
Packit b099d7
.ds f1\"
Packit b099d7
.ds f2\"
Packit b099d7
.ds f3\"
Packit b099d7
.ds f4\"
Packit b099d7
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n 
Packit b099d7
.TH "XmStringTableUnparse" "library call"
Packit b099d7
.SH "NAME"
Packit b099d7
\fBXmStringTableUnparse\fP \(em A convenience function that converts a table of compound strings to an array of text
Packit b099d7
.iX "XmStringTableUnparse"
Packit b099d7
.SH "SYNOPSIS"
Packit b099d7
.PP
Packit b099d7
.nf
Packit b099d7
#include <Xm/Xm\&.h>
Packit b099d7
\fBXtPointer * \fBXmStringTableUnparse\fP\fR(
Packit b099d7
\fBXmStringTable \fBtable\fR\fR,
Packit b099d7
\fBCardinal \fBcount\fR\fR,
Packit b099d7
\fBXmStringTag \fBtag\fR\fR,
Packit b099d7
\fBXmTextType \fBtag_type\fR\fR,
Packit b099d7
\fBXmTextType \fBoutput_type\fR\fR,
Packit b099d7
\fBXmParseTable \fBparse\fR\fR,
Packit b099d7
\fBCardinal \fBparse_count\fR\fR,
Packit b099d7
\fBXmParseModel \fBparse_model\fR\fR);
Packit b099d7
.fi
Packit b099d7
.SH "DESCRIPTION"
Packit b099d7
.PP
Packit b099d7
\fBXmStringTableUnparse\fP takes an array of compound strings,
Packit b099d7
allocates a string array for the type of characters determined by
Packit b099d7
\fItype\fP with an equal number of slots, calls
Packit b099d7
\fBXmStringUnparse\fP
Packit b099d7
on each compound string in \fItable\fP,
Packit b099d7
and inserts the resulting string in the corresponding slot in the array\&.
Packit b099d7
.IP "\fItable\fP" 10
Packit b099d7
Specifies an \fBXmStringTable\fR containing the compound string to be
Packit b099d7
converted\&.
Packit b099d7
.IP "\fIcount\fP" 10
Packit b099d7
Specifies the number of compound strings in \fItable\fP\&.
Packit b099d7
.IP "\fItag\fP" 10
Packit b099d7
Specifies the tag to be used in matching with text segments\&.
Packit b099d7
The two
Packit b099d7
types of tag types are \fBXmFONTLIST_DEFAULT_TAG\fP and
Packit b099d7
\fB_MOTIF_DEFAULT_LOCALE\fP\&.
Packit b099d7
Only segments tagged with \fItag\fP
Packit b099d7
will be returned\&. If \fItag\fP is NULL, all segments will be matched\&.
Packit b099d7
.IP "\fItag_type\fP" 10
Packit b099d7
Specifies the type of tag to be searched for\&. These types include
Packit b099d7
\fBXmMULTIBYTE_TEXT\fP, \fBXmWIDECHAR_TEXT\fP, and
Packit b099d7
\fBXmCHARSET_TEXT\fP\&.
Packit b099d7
.IP "\fIoutput_type\fP" 10
Packit b099d7
Specifies the type of text to be generated\&. These types include
Packit b099d7
\fBXmMULTIBYTE_TEXT\fP, \fBXmWIDECHAR_TEXT\fP, and
Packit b099d7
\fBXmCHARSET_TEXT\fP\&.
Packit b099d7
.IP "\fIparse\fP" 10
Packit b099d7
Specifies the parse table to be used\&.
Packit b099d7
.IP "\fIparse_count\fP" 10
Packit b099d7
Specifies the number of items in \fIparse\fP\&.
Packit b099d7
.IP "\fIparse_model\fP" 10
Packit b099d7
Specifies which non-text components to be considered in matching in
Packit b099d7
\fIparse_table\fP\&. Possible values are:
Packit b099d7
.RS
Packit b099d7
.IP "\fBXmOUTPUT_ALL\fP" 10
Packit b099d7
Puts out all matching components\&.
Packit b099d7
.IP "\fBXmOUTPUT_BETWEEN\fP" 10
Packit b099d7
Puts out only those matching components that are between two matching
Packit b099d7
text components\&.
Packit b099d7
.IP "\fBXmOUTPUT_BEGINNING\fP" 10
Packit b099d7
Puts out only those matching components that are at the beginning of a
Packit b099d7
matching text component\&.
Packit b099d7
.IP "\fBXmOUTPUT_END\fP" 10
Packit b099d7
Puts out only those matching components that are at the end of a
Packit b099d7
matching text component\&.
Packit b099d7
.IP "\fBXmOUTPUT_BOTH\fP" 10
Packit b099d7
Puts out only those matching components that are at the beginning or
Packit b099d7
end of a
Packit b099d7
matching text component\&.
Packit b099d7
.RE
Packit b099d7
.SH "RETURN"
Packit b099d7
.PP
Packit b099d7
Returns an allocated array of allocated strings\&.
Packit b099d7
The application is responsible for managing the allocated space\&.
Packit b099d7
The application can recover the allocated strings space by calling \fBXtFree\fP
Packit b099d7
\fIcount\fP times (that is, one time for each allocated string)\&.
Packit b099d7
The application can then recover the allocated array by calling
Packit b099d7
\fBXtFree\fP on the allocated array itself\&.
Packit b099d7
.SH "RELATED"
Packit b099d7
.PP
Packit b099d7
\fBXmStringTab\&.\fP
Packit b099d7
...\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:32