XMTEXTFINDSTRINGWCS(3)
β¨ NAME β¨
okay so bestie, welcome to the XmTextFindStringWcs page from the library call manual π β this one is a Text function that finds the beginning position of a wide character text string. she's the wcs girlie of the XmText finder family, no cap π¦
πΈ SYNOPSIS πΈ
#include <Xm/Text.h>
Boolean XmTextFindStringWcs(
Widget widget,
XmTextPosition start,
wchar_t *wcstring,
XmTextDirection direction,
XmTextPosition *position);
π DESCRIPTION π
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. and the cute part? if the match string begins at the current position, this routine returns the current position. she's efficient like that β¨
widgetβ specifies the Text widget ID πstartβ 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 is0(zero). fr fr, zero-indexed, that's the vibe πwcstringβ specifies the wide character search string πdirectionβ indicates the search direction. it is relative to the primary direction of the text. the possible values are:XmTEXT_FORWARDβ the search proceeds toward the end of the buffer. main character energy, moving onward π«XmTEXT_BACKWARDβ the search proceeds toward the beginning of the buffer. going back to her roots π
positionβ 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 is0(zero). if the function returnsFalse, this value is undefined. π
not me reminding you that aFalsereturn meanspositionis literally undefined β don't go reading it, bestie, that's giving undefined behaviour π
for a complete definition of Text and its associated resources, see XmText(3).
π«Ά RETURN π«Ά
returns True if a string match is found; otherwise, returns False. slay or no slay, that's the whole deal β¨
π RELATED π
XmText(3) and XmTextFindString(3).
that's the whole page, bestie!! π¦ this was XmTextFindStringWcs from the library call manual β no version or date info on this one, so just take the iconic manual name and go π
π
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms