XmTextReplace(3X)XmTextReplace(3X)NAME
XmTextReplace - A Text function that replaces part of a text string
SYNOPSIS
#include <Xm/Text.h>
void XmTextReplace (widget, from_pos, to_pos, value)
Widget widget;
XmTextPosition from_pos;
XmTextPosition to_pos;
char * value;
DESCRIPTION
XmTextReplace replaces part of the text string in the Text widget. The character positions begin at zero and are numbered sequentially
from the beginning of the text.
An example text replacement would be to replace the second and third characters in the text string. To accomplish this, the parameter
from_pos must be 1 and to_pos must be 3. To insert a string after the fourth character, both parameters, from_pos and to_pos, must be 4.
This routine calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyCallback or XmNmodifyVerifyCall-
backWcs, or both. If both verification callback lists are registered, the procedures of the XmNmodifyVerifyCallback list are executed
first and the resulting data is passed to the XmNmodifyVerifyCallbackWcs callbacks. Specifies the Text widget ID Specifies the start posi-
tion of the text to be replaced Specifies the end position of the text to be replaced Specifies the character string value to be added to
the text widget
For a complete definition of Text and its associated resources, see XmText(3X).
SEE ALSO XmText(3X), XmTextReplaceWcs(3X)XmTextReplace(3X)
Check Out this Related Man Page
XmTextReplaceWcs(library call) XmTextReplaceWcs(library call)
NAME
XmTextReplaceWcs -- A Text function that replaces part of a wide character string in a Text widget
SYNOPSIS
#include <Xm/Text.h>
void XmTextReplaceWcs(
Widget widget,
XmTextPosition from_pos,
XmTextPosition to_pos,
wchar_t *wcstring);
DESCRIPTION
XmTextReplaceWcs replaces part of the wide character string in the Text widget. The character positions begin at zero and are numbered
sequentially from the beginning of the text.
An example text replacement would be to replace the second and third characters in the text string. To accomplish this, the from_pos param-
eter must be 1 and the to_pos parameter must be 3. To insert a string after the fourth character, both the from_pos and to_pos parameters
must be 4.
This routine calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyCallback or XmNmodifyVerifyCall-
backWcs, or both. If both verification callback lists are registered, the procedures of the XmNmodifyVerifyCallback list are executed first
and the resulting data is passed to the XmNmodifyVerifyCallbackWcs callbacks. This routine calls the widget's XmNmotionVerifyCallback
callback when from_pos is less than or equal to the cursor position.
widget Specifies the Text widget ID
from_pos Specifies the start position of the text to be replaced
to_pos Specifies the end position of the text to be replaced
wcstring Specifies the wide character string value to be added to the Text widget
For a complete definition of Text and its associated resources, see XmText(3).
RELATED XmText(3) and XmTextReplace(3).
XmTextReplaceWcs(library call)
Dear Friends,
I am facing a problem while selecting the test that is between start and end tags.
i have a file contains,
--------------
<abc> some text some text
some text some text
some text some text
some text some text
some text </abc>
===blank line======
<abc> some text some text... (7 Replies)
I have a file that has text in the format below
/users/test/krachel/
! Some text
! Some Text
/user/test/limo
! some text
! some text
! Some text
/user/test/krachel
! Some text
How can I seperate the text between a pair of '/users/test/' into seperate files ???
any information... (11 Replies)
i'm writing a script that will extract and substitute a certain part of a data.
i'm having trouble with the substituting part ...
Here's my data looks like:
01/01/08-001-23:46:18-01/01/08-23:50:43
01/01/08-003-23:45:19-01/01/08-23:55:49
01/01/08-005-23:52:18-01/01/08-23:58:52
i want to... (6 Replies)
I have a file which contains the following data.
Parameters "CParameters"
BEGIN DSSUBRECORD
Name "TgtDB"
Prompt "TgtDB"
Default "edwdev"
ParamType "0"
ParamLength "0"
ParamScale "0"
END DSSUBRECORD
MetaBag... (6 Replies)
I have downloaded one csv file from my AIX box and edited using Text Pad, and uploaded thru SecureFX, If I see the file using vi command I can see ^M in end of the line, if open again in text pad there are lot of new lines. How to fix this issue? where is the problem? Text pad or SecureFX? (11 Replies)
***************
#some other text
*****************
***************
#some other text
*****************
address1=1.1.1.1
address2=2.2.2.2
address3=3.3.3.3
I have a file where i need to push all the text starting from address1 till end of file to, below . Can anyone of you... (6 Replies)
Hello,
I must replace all occurences of 0a character in a text file with 2 characters 0d0a. I've tried sed, but it cannot insert control characters ie. \n \r - it simply writes \n \r into output file. What is the good solution for my problem? I use ksh and AIX 5.3 operating system.
Tia
Yac (8 Replies)
Hi,
How can I remove the line beak in the following case if the line begin with the special char “;”?
TEXT
Text;text
;text
Text;text;text
I want to convert the text to:
Text;text;text
Text;text;text
I have already tried to use... (31 Replies)
I just want to add a particular string in text file using shell script
text file format
1 columns-10
2 text=89
3 no<>
4
5 test-9876
6 size=9
string need to insert in 4th line
<switch IP='158.195.2.567' port='5900' user='testc' password='asdfrp' Code='8'>
After inserting the... (8 Replies)
Hi All,
Can someone pls help me to insert some text on a file.
my file contains something like below..
AKBULBU,
BALUMIL,
BATCH,BATCH
BOARROB,
BOTAKAT,
C57896,
CAKIOZE,
CHECMER,
CICOFRA,
CISZPAW,2194485
I want output as
USER_ID, LOGIN_ID (6 Replies)
I have text file as follows and would like to remove the last occurance of "UNION ALL" string and replace @@ with single quote (').
Input text in file is
with temp as (
( select ----------- where OPERATION = @@B@@ and OBJECTTYPE = @@P@@ and start_time desc ) UNION ALL
( select... (9 Replies)
I have a file that has some text that looks like this
Some Text
1. More text
2. Different text
Final Text
I would like the remove the lines of text that start with the numbers.
Some Text
Final Text
I have tried to use cat file.txt | grep -Ev 1. >... (9 Replies)
I must go through some files to change a certain string within text files to another string. I use openSUSE and folders are mounted by cifs.
Text to be replaced (only in .m extension) is U:\FOLDER and new string is N:
That works fine with spaces in directory names etc., but this process ... (5 Replies)
Hi Anybody can help me to make a script that replace string "Su saldo es" with "Your balance" in XML block if it start with Text Id=98 and Text Id= 12 only sample of part of file below
<Text Id="98">
<Language id="1">Su saldo es $mainAccountBalance1Tiene ademas $dedicatedAccount1Balance1... (13 Replies)
I wrote a program using Perl to find and replace a text within a file.
The text that needs to be replaced in the file is 'sql7.0.1' with 'sqls715'. When I execute my program I get an error message:
Here is my code:
#!/usr/bin/perl
use strict;
use warnings;
my $filename =... (6 Replies)