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

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

Contents


 XmStringParseText(library call)             XmStringParseText(library call)




 NAME    [Toc]    [Back]
      XmStringParseText - A function that converts a character string to a
      compound string

 SYNOPSIS    [Toc]    [Back]
      #include <Xm/Xm.h>
      XmString XmStringParseText(
      XtPointer text,
      XtPointer *text_end,
      XmStringTag tag,
      XmTextType type,
      XmParseTable parse_table,
      Cardinal parse_count,
      XtPointer call_data);

 DESCRIPTION    [Toc]    [Back]
      XmStringParseText converts characters specified in text to
      corresponding components in the returned compound string. The
      resulting compound string consists of at least one locale or charset
      tag component and a series of XmString text components and other
      components. The conversion proceeds according to the parse information
      contained in parse_table. See the Motif Programmer's Guide for more
      information about parsing and parse tables.

         +  If type is XmCHARSET_TEXT, the associated tag is interpreted as
            a charset name.  If tag has a value of NULL, a charset component
            whose value is the result of mapping XmFONTLIST_DEFAULT_TAG is
            created.

         +  If type is XmMULTIBYTE_TEXT or XmWIDECHAR_TEXT, the associated
            tag is interpreted as a language environment name.  If tag has a
            value of NULL, a locale component with a value of
            _MOTIF_DEFAULT_LOCALE is created.  If type is XmMULTIBYTE_TEXT
            or XmWIDECHAR_TEXT, tag must be NULL or _MOTIF_DEFAULT_LOCALE.

      XmStringParseText also scans the string for characters that have
      matches in parse_table.  Whenever a match is found, the text up to
      that point is concatenated with the mapped component.

      text      Specifies the NULL-terminated string containing characters
                of a type determined by type.  This is updated to point to
                after the last character scanned.

      text_end  Specifies a pointer into text. If a NULL is supplied to the
                text_end parameter, then XmStringParseText parses text until
                NULL is encountered, or until it reaches a point in text
                where it is directed to stop (for example, by a parse_proc).
                Otherwise, the value supplied to the text_end parameter is
                the pointer into text where parsing is to stop, and the
                returned character is the one where parsing did stop.




                                    - 1 -       Formatted:  January 24, 2005






 XmStringParseText(library call)             XmStringParseText(library call)




      tag       Specifies the tag to be used in creating the result.  The
                type of string tag created (charset or locale) depends on
                the text type and the passed in tag value.  If the tag value
                is NULL and if type indicates that a charset string tag
                should be created, the string tag has the value that is the
                result of mapping XmFONTLIST_DEFAULT_TAG.  If type indicates
                a locale string tag, the string tag has the value
                _MOTIF_DEFAULT_LOCALE.

      type      Specifies the type of text and the tag type.  If a locale
                tag should be created, type has a value of either
                XmMULTIBYTE_TEXT or XmWIDECHAR_TEXT.  If type has value of
                XmCHARSET_TEXT, a charset tag will be created.

      parse_table
                Specifies the parse table to be used in scanning for
                characters to be converted to other compound string
                components.

      parse_count
                Specifies the number of entries in parse_table.

      call_data Specifies data to be passed to the parse procedures.

 RETURN    [Toc]    [Back]
      Returns a new compound string.  The function allocates space to hold
      the returned compound string.  When the application no longer needs
      the returned compound string, the application should call
      XmStringFree.

 RELATED    [Toc]    [Back]
      XmString(3), XmStringFree(3), XmParseTable(3), XmParseMapping(3).


                                    - 2 -       Formatted:  January 24, 2005
[ Back ]
 Similar pages
Name OS Title
XmCvtByteStreamToXmString HP-UX A compound string function that converts from a compound string in Byte Stream format to a compound string
XmCvtXmStringToByteStream HP-UX A compound string function that converts a compound string to a Byte Stream format
XmStringTableToXmString HP-UX A convenience function that converts a compound string table to a single compound string
XmCvtXmStringToCT Tru64 A compound string function that converts a compound string to compound text
XmCvtCTToXmString IRIX A compound string function that converts compound text to a compound string
XmCvtCTToXmString Tru64 A compound string function that converts compound text to a compound string
XmCvtXmStringToCT IRIX A compound string function that converts a compound string to compound text
XmCvtCTToXmString HP-UX A compound string function that converts compound text to a compound string
XmCvtXmStringToCT HP-UX A compound string function that converts a compound string to compound text
XmStringToXmStringTable HP-UX A convenience function that converts a single compound string to a table of compound strings
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service