dxmcstextreplace(3x) osf1 man page | unix.com

Query: dxmcstextreplace

OS: osf1

Section: 3x

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

DXmCSTextReplace(3X)													      DXmCSTextReplace(3X)

NAME
DXmCSTextReplace - Replaces a specified segment of text in a compound string text widget.
SYNOPSIS
DXmCSTextStatus DXmCSTextReplace( Widget widget, int from_pos, int to_pos, XmString value );
PARAMETERS
The identifier (widget ID) of the compound string text widget. An integer that represents the first character position of the text being replaced. An integer that represents the last character position of the text being replaced. Replacement text for part of the current text in the compound string text widget, or additional text to be inserted into the compound string text widget.
DESCRIPTION
The DXmCSTextReplace routine replaces part of the text in the compound string text widget. Within the widget, positions are numbered starting at 0 and increasing sequentially. For example, to replace the second and third characters in the text, from_pos should be 1 and to_pos should be 3. To insert text after the fourth character, from_pos and to_pos should both be 4.
RETURN VALUES
A value that represents the status (success or failure) of the replace operation, as follows: -------------------------------------------------------- Value Description -------------------------------------------------------- DXmCSTextStatusEditDone Text replaced successfully. DXmCSTextStatusEditError Text not replaced (failure). --------------------------------------------------------
SEE ALSO
DXmCreateCSText(3X), DXmCSTextSetString(3X), DXmCSTextGetString(3X) DXmCSTextReplace(3X)
Related Man Pages
xmtextreplace(3) - redhat
xmtextreplacewcs(3) - centos
xmtextreplace(3) - centos
xmtextfieldreplace(3) - hpux
dxmcstextreplace(3x) - osf1
Similar Topics in the Unix Linux Community
need to read 3° character from a text file
remove specific lines from flat file using perl
Reading frm text file
Finding a string in a text file and posting part of the line
How to find repeated string in a text file