File: XmTextGetSubstringWcs.3

package info (click to toggle)
motif 2.3.4-13
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 81,160 kB
  • ctags: 51,769
  • sloc: ansic: 596,938; cpp: 3,951; yacc: 2,854; makefile: 2,070; csh: 1,199; sh: 1,070; lex: 455
file content (108 lines) | stat: -rw-r--r-- 3,167 bytes parent folder | download | duplicates (9)
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
'\" t
...\" TxtGetSH.sgm /main/9 1996/09/08 21:18:08 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 "XmTextGetSubstringWcs" "library call"
.SH "NAME"
\fBXmTextGetSubstringWcs\fP \(em A Text function that retrieves
a portion of a wide character internal text buffer
.iX "XmTextGetSubstringWcs"
.iX "Text functions" "XmTextGetSubstringWcs"
.SH "SYNOPSIS"
.PP
.nf
#include <Xm/Text\&.h>
\fBint \fBXmTextGetSubstringWcs\fP\fR(
\fBWidget \fBwidget\fR\fR,
\fBXmTextPosition \fBstart\fR\fR,
\fBint \fBnum_chars\fR\fR,
\fBint \fBbuffer_size\fR\fR,
\fBwchar_t *\fBbuffer\fR\fR);
.fi
.SH "DESCRIPTION"
.PP
\fBXmTextGetSubstringWcs\fP retrieves a copy of a portion of the internal
text buffer of a Text widget that is stored in a wide character
format\&. The function copies a specified number of characters from
a given start position in the internal text buffer into a buffer
provided by the application\&. A NULL terminator is placed at the
end of the copied data\&.
.IP "\fIwidget\fP" 10
Specifies the Text widget ID\&.
.IP "\fIstart\fP" 10
Specifies the beginning character position from which the data will be
retrieved\&. This is an integer number of characters from the beginning of
the text buffer\&. The first character position is 0 (zero)\&.
.IP "\fInum_chars\fP" 10
Specifies the number of \fBwchar_t\fR characters to be copied into
the provided buffer\&.
.IP "\fIbuffer_size\fP" 10
Specifies the size of the supplied buffer as a number of \fBwchar_t\fR
storage locations\&. The minimum size is \fInum_chars\fP + 1\&.
.IP "\fIbuffer\fP" 10
Specifies the wide character buffer into which the internal
text buffer will be copied\&.
.PP
For a complete definition of Text and its associated resources,
see \fBXmText\fP(3)\&.
.SH "RETURN"
.IP "\fBXmCOPY_SUCCEEDED\fP" 10
The function was successful\&.
.IP "\fBXmCOPY_FAILED\fP" 10
The function failed because it was unable to copy the
specified number of characters into the buffer provided\&.
The buffer size may be insufficient\&. The contents of
\fIbuffer\fP are undefined\&.
.IP "\fBXmCOPY_TRUNCATED\fP" 10
The requested number of characters extended beyond the internal
buffer\&. The function copied characters between \fIstart\fP and the
end of the widget\&'s buffer and terminated the string with a NULL
terminator; fewer than \fInum_chars\fP characters were copied\&.
.SH "RELATED"
.PP
\fBXmText\fP(3) and \fBXmTextGetSubstring\fP(3)\&.
...\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:35