Unix and Linux Discussions Tagged with sed - replace text with variable |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
3 |
5,735 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
6,669 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
1,944 |
Shell Programming and Scripting |
|
|
|
4 |
1,668 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
2,404 |
Shell Programming and Scripting |
|
|
|
1 |
1,096 |
Shell Programming and Scripting |
|
|
|
2 |
1,659 |
Shell Programming and Scripting |
|
|
|
13 |
7,004 |
Homework & Coursework Questions |
|
|
|
3 |
2,817 |
Shell Programming and Scripting |
|
|
|
1 |
2,429 |
Shell Programming and Scripting |
|
|
|
3 |
2,120 |
Shell Programming and Scripting |
|
|
|
10 |
6,921 |
Homework & Coursework Questions |
|
|
|
4 |
2,935 |
Shell Programming and Scripting |
|
|
|
6 |
1,338 |
Shell Programming and Scripting |
|
|
|
13 |
7,064 |
Shell Programming and Scripting |
|
|
|
2 |
5,021 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,444 |
Shell Programming and Scripting |
|
|
|
4 |
3,283 |
Shell Programming and Scripting |
|
|
|
2 |
2,629 |
Shell Programming and Scripting |
|
|
|
11 |
6,044 |
Shell Programming and Scripting |
|
|
|
5 |
4,685 |
Shell Programming and Scripting |
|
|
|
11 |
5,278 |
Shell Programming and Scripting |
|
|
|
9 |
3,746 |
Shell Programming and Scripting |
|
|
|
4 |
9,433 |
Shell Programming and Scripting |
|
|
|
3 |
4,188 |
Shell Programming and Scripting |
|
|
|
4 |
2,460 |
Shell Programming and Scripting |
|
|
|
9 |
13,465 |
Shell Programming and Scripting |
|
|
|
8 |
4,369 |
UNIX for Dummies Questions & Answers |
DwtSTextReplace(3Dwt) DwtSTextReplace(3Dwt)
Name
DwtSTextReplace - Replaces a portion of the current text string in the simple text widget or inserts a new substring in the text.
Syntax
void DwtSTextReplace(widget, from_pos, to_pos, value)
Widget widget;
int from_pos, to_pos;
DwtCompString value;
Arguments
widget Specifies the ID of the simple text widget whose text string you want to replace.
from_pos Specifies the beginning character position within the text string marking the text being replaced.
to_pos Specifies the last character position within the text string marking the text being replaced.
value Specifies the text to replace part of the current text in the simple text widget.
Description
The DwtSTextReplace function replaces part of the text string in the simple text widget. Within the window, the positions are numbered
starting from 0 and increasing sequentially. For example, to replace the second and third characters in the string, from_pos should be 1
and to_pos should be 3. To insert a string after the fourth character, from_pos and to_pos should both be 4.
See Also
DwtSText(3Dwt), DwtSTextGetString(3Dwt), DwtSTextGetEditable(3Dwt), DwtSTextSetEditable(3Dwt), DwtSTextGetMaxLength(3Dwt), DwtS-
TextSetMaxLength(3Dwt), DwtSTextSetSelection(3Dwt), DwtSTextClearSelection(3Dwt), DwtSTextGetSelection(3Dwt)
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding
DwtSTextReplace(3Dwt)