File: XmStringGetNextComponent.3

package info (click to toggle)
motif 2.3.8-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 36,432 kB
  • sloc: ansic: 452,643; sh: 4,613; makefile: 2,030; yacc: 1,604; lex: 352; cpp: 348
file content (156 lines) | stat: -rw-r--r-- 4,842 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
'\" t
...\" StrGeC.sgm /main/9 1996/09/08 21:05:15 rws $
.de P!
.fl
\!!1 setgray
.fl
\\&.\"
.fl
\!!0 setgray
.fl			\" force out current output buffer
\!!save /psv exch def currentpoint translate 0 0 moveto
\!!/showpage{}def
.fl			\" prolog
.sy sed -e 's/^/!/' \\$1\" bring in postscript file
\!!psv restore
.
.de pF
.ie     \\*(f1 .ds f1 \\n(.f
.el .ie \\*(f2 .ds f2 \\n(.f
.el .ie \\*(f3 .ds f3 \\n(.f
.el .ie \\*(f4 .ds f4 \\n(.f
.el .tm ? font overflow
.ft \\$1
..
.de fP
.ie     !\\*(f4 \{\
.	ft \\*(f4
.	ds f4\"
'	br \}
.el .ie !\\*(f3 \{\
.	ft \\*(f3
.	ds f3\"
'	br \}
.el .ie !\\*(f2 \{\
.	ft \\*(f2
.	ds f2\"
'	br \}
.el .ie !\\*(f1 \{\
.	ft \\*(f1
.	ds f1\"
'	br \}
.el .tm ? font underflow
..
.ds f1\"
.ds f2\"
.ds f3\"
.ds f4\"
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n 
.TH "XmStringGetNextComponent" "library call"
.SH "NAME"
\fBXmStringGetNextComponent\fP \(em A compound string function that returns the type and value of the next component in a compound string
.iX "XmStringGetNextComponent"
.iX "compound string functions" "XmStringGetNextComponent"
.SH "SYNOPSIS"
.PP
.nf
#include <Xm/Xm\&.h>
\fBXmStringComponentType \fBXmStringGetNextComponent\fP\fR(
\fBXmStringContext \fBcontext\fR\fR,
\fBchar **\fBtext\fR\fR,
\fBXmStringTag *\fBtag\fR\fR,
\fBXmStringDirection *\fBdirection\fR\fR,
\fBXmStringComponentType *\fBunknown_tag\fR\fR,
\fBunsigned short *\fBunknown_length\fR\fR,
\fBunsigned char **\fBunknown_value\fR\fR);
.fi
.SH "DESCRIPTION"
.PP
This function is obsolete and exists for compatibility with previous
releases\&. It is replaced by \fBXmStringGetNextTriple\fP\&.
\fBXmStringGetNextComponent\fP
returns the type and value of the next component in
the compound string identified by \fIcontext\fP\&.
Components are returned one at a time\&. On return, only
some output parameters will be valid; which ones can be determined by
examining the returned component type\&.
The following table describes the valid returns for each component
type\&.
.TS
tab() box;
lw(2.0i)| l.
\fBValid Fields\fP\fBComponent Type\fP
__
\fItag\fPT{
\fBXmSTRING_COMPONENT_LOCALE, XmSTRING_COMPONENT_TAG\fP
T}
__
\fItext\fPT{
\fBXmSTRING_COMPONENT_LOCALE_TEXT, XmSTRING_COMPONENT_TEXT,
XmSTRING_COMPONENT_WIDECHAR_TEXT\fP
T}
__
\fIdirection\fP\fBXmSTRING_COMPONENT_DIRECTION\fP
__
T{
\fIunknown_tag, unknown_length, unknown_value\fP
T}T{
\fBXmSTRING_COMPONENT_LAYOUT_POP, XmSTRING_COMPONENT_LAYOUT_PUSH,
XmSTRING_COMPONENT_TAB, XmSTRING_COMPONENT_RENDITION_BEGIN,
XmSTRING_COMPONENT_RENDITION_END\fP
T}
__
\fIno valid field\fPT{
\fBXmSTRING_COMPONENT_SEPARATOR, XmSTRING_COMPONENT_END,
XmSTRING_COMPONENT_UNKNOWN\fP
T}
__
.TE
.PP
Note that several components produce a return value of
\fBXmSTRING_COMPONENT_UNKNOWN\fP\&. The data returned by these
components is returned in the \fIunknown_tag\fP, \fIunknown_length\fP,
and \fIunknown_value\fP fields\&. This apparent inconsistency is
designed to accommodate older applications that may not be equipped to
handle the newer component types of Motif version 2\&.0 and beyond\&.
Consequently, the use of this procedure is not recommended\&. Instead,
use the \fBXmStringGetNextTriple\fP procedure, which provides all the
functionality of \fBXmStringGetNextComponent\fP, and is fully
compatible with the newer component types\&.
.PP
If the function return value is \fBXmSTRING_COMPONENT_LOCALE_TEXT\fP or
\fBXmSTRING_COMPONENT_TEXT\fP, the the function allocates space to hold
the returned \fItext\fP\&.
If the function return value is \fBXmSTRING_COMPONENT_FONTLIST_ELEMENT_TAG\fP,
or \fBXmSTRING_COMPONENT_TAG\fP, then the function allocates space to hold
the returned \fItag\fP\&.
The application is responsible for managing the allocated space\&.
The application can recover the allocated space by calling \fBXtFree\fP\&.
.IP "\fIcontext\fP" 10
Specifies the string context structure that was allocated by the
\fBXmStringInitContext\fP function\&.
.IP "\fItext\fP" 10
Specifies a pointer to a NULL terminated string\&.
.IP "\fItag\fP" 10
Specifies a pointer to the tag component associated with the
text\&. The value \fBXmFONTLIST_DEFAULT_TAG\fP identifies a locale
text segment\&.
.IP "\fIdirection\fP" 10
Specifies a pointer to the direction of the text\&.
.IP "\fIunknown_tag\fP" 10
Specifies a pointer to the tag of an unknown component\&.
.IP "\fIunknown_length\fP" 10
Specifies a pointer to the length of an unknown component\&.
.IP "\fIunknown_value\fP" 10
Specifies a pointer to the value of an unknown component\&.
.SH "RETURN"
.PP
Returns the type of component found\&.
Refer to the
\fBXmStringComponentType\fP(3) reference page for a list of component types\&.
.SH "RELATED"
.PP
\fBXmStringComponentType\fP(3),
\fBXmStringCreate\fP(3),
and \fBXmStringInitContext\fP(3)\&.
...\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:31