DOKK / manpages / debian 11 / libmotif-dev / XmTextFindStringWcs.3.en
XmTextFindStringWcs(3) Library Functions Manual XmTextFindStringWcs(3)

XmTextFindStringWcs — A Text function that finds the beginning position of a wide character text string "XmTextFindStringWcs" "Text functions" "XmTextFindStringWcs"

#include <Xm/Text.h>
Boolean XmTextFindStringWcs(
Widget widget,
XmTextPosition start,
wchar_t *wcstring,
XmTextDirection direction,
XmTextPosition *position);

XmTextFindStringWcs locates the beginning position of a specified wide character text string. This routine searches forward or backward for the first occurrence of the string, starting from the given start position. If a match is found, the function returns the position of the first character of the string in position. If the match string begins at the current position, this routine returns the current position.

Specifies the Text widget ID.
Specifies the character position from which the search proceeds. This is an integer number of characters from the beginning of the text buffer. The first character position is 0 (zero).
Specifies the wide character search string.
Indicates the search direction. It is relative to the primary direction of the text. The possible values are
The search proceeds toward the end of the buffer.
The search proceeds toward the beginning of the buffer.
Specifies the pointer in which the first character position of the string match is returned. This is an integer number of characters from the beginning of the buffer. The first character position is 0 (zero). If the function returns False, this value is undefined.

For a complete definition of Text and its associated resources, see XmText(3).

Returns True if a string match is found; otherwise, returns False.

XmText(3) and XmTextFindString(3).