Blame doc/man/man3/XmTextFindString.3

Packit b099d7
'\" t
Packit b099d7
...\" TxtFindA.sgm /main/10 1996/09/25 14:51:36 cdedoc $
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 "XmTextFindString" "library call"
Packit b099d7
.SH "NAME"
Packit b099d7
\fBXmTextFindString\fP \(em A Text function that finds the beginning position of a text string
Packit b099d7
.iX "XmTextFindString"
Packit b099d7
.iX "Text functions" "XmTextFindString"
Packit b099d7
.SH "SYNOPSIS"
Packit b099d7
.PP
Packit b099d7
.nf
Packit b099d7
#include <Xm/Xm\&.h>
Packit b099d7
\fBBoolean \fBXmTextFindString\fP\fR(
Packit b099d7
\fBWidget \fBwidget\fR\fR,
Packit b099d7
\fBXmTextPosition \fBstart\fR\fR,
Packit b099d7
\fBchar *\fBstring\fR\fR,
Packit b099d7
\fBXmTextDirection \fBdirection\fR\fR,
Packit b099d7
\fBXmTextPosition *\fBposition\fR\fR);
Packit b099d7
.fi
Packit b099d7
.SH "DESCRIPTION"
Packit b099d7
.PP
Packit b099d7
\fBXmTextFindString\fP locates the beginning position of a specified
Packit b099d7
text string\&. This routine searches forward or backward for the first
Packit b099d7
occurrence of the string starting from the given start position\&.
Packit b099d7
If it finds a match, the function
Packit b099d7
returns the position of the first character of the string in \fIposition\fP\&.
Packit b099d7
If the match string begins at the current position, this routine returns the current position\&.
Packit b099d7
.IP "\fIwidget\fP" 10
Packit b099d7
Specifies the Text widget ID\&.
Packit b099d7
.IP "\fIstart\fP" 10
Packit b099d7
Specifies the character position from which the search proceeds\&. This
Packit b099d7
is an integer number of characters from the beginning of the text
Packit b099d7
buffer\&. The first character position is 0 (zero)\&.
Packit b099d7
.IP "\fIstring\fP" 10
Packit b099d7
Specifies the search string\&.
Packit b099d7
.IP "\fIdirection\fP" 10
Packit b099d7
Indicates the search direction\&. It is relative to the primary
Packit b099d7
direction of the text\&. The possible values are
Packit b099d7
.RS
Packit b099d7
.IP "\fBXmTEXT_FORWARD\fP" 10
Packit b099d7
The search proceeds toward the end of the text buffer\&.
Packit b099d7
.IP "\fBXmTEXT_BACKWARD\fP" 10
Packit b099d7
The search proceeds toward the beginning of the text buffer\&.
Packit b099d7
.RE
Packit b099d7
.IP "\fIposition\fP" 10
Packit b099d7
Specifies the pointer in which the first character position
Packit b099d7
of the string match is returned\&. This is an integer number
Packit b099d7
of characters from the beginning of the buffer\&. The first
Packit b099d7
character position is 0 (zero)\&. If the function returns False,
Packit b099d7
this value is undefined\&.
Packit b099d7
.PP
Packit b099d7
For a complete definition of Text and its associated resources,
Packit b099d7
see \fBXmText\fP(3)\&.
Packit b099d7
.SH "RETURN"
Packit b099d7
.PP
Packit b099d7
Returns True if a string match is found; otherwise, returns False\&.
Packit b099d7
.SH "RELATED"
Packit b099d7
.PP
Packit b099d7
\fBXmText\fP(3) and \fBXmTextFindStringWcs\fP(3)\&.
Packit b099d7
...\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:35