Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XmTextFindStringWcs(3X) — DG/UX 5.4R2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     XmTextFindStringWcs(3X)        OSF        XmTextFindStringWcs(3X)



     NAME
          XmTextFindStringWcs-A Text function that finds the beginning
          position of a wide character text string

     SYNOPSIS
          #include <Xm/Text.h>

          Boolean XmTextFindStringWcs (widget, start, wcstring, direction, position)
               Widget      widget;
               XmTextPositionstart;
               wchart     *wcstring;
               XmTextDirectiondirection;
               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.


          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 is 0.

          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


                 XmTEXTFORWARD    The search proceeds toward the end
                                   of the buffer.

                 XmTEXTBACKWARD   The search proceeds toward the
                                   beginning of the buffer.


          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 is 0.  If



     1                                                (printed 6/8/92)





     XmTextFindStringWcs(3X)        OSF        XmTextFindStringWcs(3X)



                 the function returns False, this value is undefined.


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

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

     RELATED INFORMATION
          XmText(3X) and XmTextFindString(3X).











































     2                                                (printed 6/8/92)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026