*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> XmTextFindString (3)              
Title
Content
Arch
Section
 

Contents


 XmTextFindString(library call)               XmTextFindString(library call)




 NAME    [Toc]    [Back]
      XmTextFindString - A Text function that finds the beginning position
      of a text string

 SYNOPSIS    [Toc]    [Back]
      #include <Xm/Xm.h>
      Boolean XmTextFindString(
      Widget widget,
      XmTextPosition start,
      char *string,
      XmTextDirection direction,
      XmTextPosition *position);

 DESCRIPTION    [Toc]    [Back]
      XmTextFindString locates the beginning position of a specified text
      string. This routine searches forward or backward for the first
      occurrence of the string starting from the given start position.  If
      it finds a match, 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.

      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 (zero).

      string    Specifies the search string.

      direction Indicates the search direction. It is relative to the
                primary direction of the text. The possible values are

                XmTEXT_FORWARD    [Toc]    [Back]
                          The search proceeds toward the end of the text
                          buffer.

                XmTEXT_BACKWARD    [Toc]    [Back]
                          The search proceeds toward the beginning of the
                          text 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 (zero). If the function returns
                False, this value is undefined.

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





                                    - 1 -       Formatted:  January 24, 2005






 XmTextFindString(library call)               XmTextFindString(library call)




 RETURN    [Toc]    [Back]
      Returns True if a string match is found; otherwise, returns False.

 RELATED    [Toc]    [Back]
      XmText(3) and XmTextFindStringWcs(3).


                                    - 2 -       Formatted:  January 24, 2005
[ Back ]
 Similar pages
Name OS Title
XmTextFindStringWcs IRIX A Text function that finds the beginning position of a wide character text string
XmTextFindStringWcs HP-UX A Text function that finds the beginning position of a wide character text string
XmTextFindStringWcs Tru64 A Text function that finds the beginning position of a wide character text string
XmTextShowPosition IRIX A Text function that forces text at a given position to be displayed
XmTextShowPosition Tru64 A Text function that forces text at a given position to be displayed
XmTextShowPosition HP-UX A Text function that forces text at a given position to be displayed
XmTextGetLastPosition HP-UX A Text function that accesses the last position in the text
XmTextGetLastPosition IRIX A Text function that accesses the last position in the text
XmTextGetLastPosition Tru64 A Text function that accesses the last position in the text
XmTextGetStringWcs Tru64 A Text function that retrieves a copy of the wide character string value of a Text widget
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service