Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmtextfindstringwcs(3x) [osf1 man page]

XmTextFindStringWcs(3X) 												   XmTextFindStringWcs(3X)

NAME
XmTextFindStringWcs - A Text function that finds the beginning position of a wide character text string SYNOPSIS
#include <Xm/Text.h> Boolean XmTextFindStringWcs (widget, start, wcstring, direction, position) Widget widget; XmTextPosition start; wchar_t *wcstring; XmTextDirection direction; XmTextPosition *position; DESCRIPTION
XmTextFindStringWcs locates the beginning position of a specified wide character text string. This routine searches forward or backward for the first occurrence of the string, starting from the given start position. If a match is found, the function returns the position of the first character of the string in position. Specifies the Text widget ID. Specifies the character position from which the search pro- ceeds. This is an integer number of characters from the beginning of the text buffer. The first character position is 0. Specifies the wide character search string. Indicates the search direction. It is relative to the primary direction of the text. The possible values are: The search proceeds toward the end of the buffer. The search proceeds toward the beginning of the buffer. 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 buf- fer. The first character position is 0. If the function returns False, this value is undefined. For a complete definition of Text and its associated resources, see XmText(3X). RETURN VALUE
Returns True if a string match is found; otherwise, returns False. SEE ALSO
XmText(3X), XmTextFindString(3X) XmTextFindStringWcs(3X)

Check Out this Related Man Page

XmTextFindString(library call)											    XmTextFindString(library call)

NAME
XmTextFindString -- A Text function that finds the beginning position of a text string SYNOPSIS
#include <Xm/Xm.h> Boolean XmTextFindString( Widget widget, XmTextPosition start, char *string, XmTextDirection direction, XmTextPosition *position); DESCRIPTION
XmTextFindString locates the beginning position of a specified text string. This routine searches forward or backward for the first occur- rence 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 The search proceeds toward the end of the text buffer. XmTEXT_BACKWARD 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 charac- ters 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). RETURN
Returns True if a string match is found; otherwise, returns False. RELATED
XmText(3) and XmTextFindStringWcs(3). XmTextFindString(library call)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

to search for a particular character in a word

Hi I would like to accept in a string from user like username/pwd@dbname suppose the user does not input @ then i should throw an error that @ symbol missing . How to achieve this Thanks in advance Suresh (6 Replies)
Discussion started by: ssuresh1999
6 Replies

2. UNIX for Dummies Questions & Answers

Depending upon character at particular position, string needs to be appended

Depending upon character at particular position in a line, string needs to be appended followed by empty spaces till 256th column position at the end of the each line in the file. example: 123p4 J8769 123q4 R2345 123r4 S2345 What I Require is, it has to check at 7th column character and... (10 Replies)
Discussion started by: vaka
10 Replies

3. Shell Programming and Scripting

search a line and insert string into specific at position

Hi, guys. I have one question: How can I search for a line with certain string in it and then insert a string into this line? For example: There is a file called shadow, the contents of it are below: ************************** ... yuanz:VIRADxMsadfDF/Q:0:0:50:7:::... (9 Replies)
Discussion started by: daikeyang
9 Replies

4. Shell Programming and Scripting

Deleting all characters from 350th character to 450th character from the log file

Hi All, I have a big log file i want to delete all characters (between 350th to 450th characters) starting at 350th character position to 450th character position. please advice or sample code. (6 Replies)
Discussion started by: rajeshorpu
6 Replies

5. Shell Programming and Scripting

Extract data based on position

The file has record length 200. And i have 100 search strings which are ten digits of character from 1 to 10 characters all of them are unique, they need to searched in a file. Please help me to pull the records based on position (say from 1-10). test data 1FAHP2DW0BG115206RASHEED ... (6 Replies)
Discussion started by: zooby
6 Replies

6. Shell Programming and Scripting

substitute a string on a specific position for specific lines

I woud like to substitue a string on a specific position for specific lines I've got a file and I would like to change a specific string from "TOCHANGE" to "ABCABCAB" For every line (except 1,2, 3 and the last one) , I need to check between the 9th and the 16th digits. For the 3rd line, I... (7 Replies)
Discussion started by: BSF
7 Replies

7. Shell Programming and Scripting

How to find character position in file?

how to find character positionin file? i.e string = "123X568" i want to find the position of character "X". Thanks (6 Replies)
Discussion started by: LiorAmitai
6 Replies

8. Programming

search a file between two begin and end strings in c

Can any one help me out with following problem... I want to search in a file which has two strings repeat each time(like start and end) i want to search between these two string in C programming. please help me with the solution. thanks in advance. (8 Replies)
Discussion started by: uday.sena.m
8 Replies

9. Shell Programming and Scripting

Pattern matching problem

Hi I need a bash script that can search through a text file for all lines starting with 71502FSC1206 on every line it finds starting with this I need to place a letter F at the 127 position on that line. Thanks Paul (6 Replies)
Discussion started by: firefox2k2
6 Replies

10. UNIX for Dummies Questions & Answers

Change a character based on its position number

Hi I have a text file that I want to change some of the characters based on their position. My file contain multiple lines and characters should be counted continuously line by line. For example, I want to convert the 150th T to C. What can I do? Here is a portion of my file:... (10 Replies)
Discussion started by: a_bahreini
10 Replies

11. UNIX for Dummies Questions & Answers

awk for trimming a string up to the first, then second, then third... match

Hi ! With awk, I would need to trim a string from the beginning up to the first occurrence of "1", then from the beginning up to the second occurrence of "1", then from the beginning up to the third, then the fourth...., then the last occurrence of "1". input: 1aaa1bb1ccccccc dd1e1ffff... (7 Replies)
Discussion started by: beca123456
7 Replies

12. Shell Programming and Scripting

Find character and Replace character for given position

Hi, i want find the character '-' in a file from position 284-298, if it occurs i need to replace it with 'O ' for the position in the file. How to do that using SED command. thanks in advance, Sara (9 Replies)
Discussion started by: Sara183
9 Replies

13. Shell Programming and Scripting

Delete character on specific position

Hi, im still new in unix. i want to ask how to delete character on specific position in line, lets say i want to remove 5 character from position 1000, so characters from position 1000-1005 will be deleted. i found this sed command can delete 4 characters from position 10, but i dont know if... (7 Replies)
Discussion started by: bluesue
7 Replies

14. Shell Programming and Scripting

Search for a string at a particular position and replace with blank based on position

Hi, I have a file with multiple lines(fixed width dat file). I want to search for '02' in the positions 45-46 and if available, in that lines, I need to replace value in position 359 with blank. As I am new to unix, I am not able to figure out how to do this. Can you please help me to achieve... (9 Replies)
Discussion started by: Pradhikshan
9 Replies

15. Shell Programming and Scripting

Regex question

I want to match all occurrence of 01,03,05,07,10,11 at 9th and 10th position of a string . I tried the following but its also matching characters like 33 or 11 on 9th and 10th position . sed "/^\{8\}00/d" A.TXT 000000001000 433483433339 <<< wrong 121121211100 <<< wrong 167710000110... (10 Replies)
Discussion started by: boncuk
10 Replies