Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

th_wbrk(centos) [centos man page]

thai/thwbrk.h(3)						      libthai							  thai/thwbrk.h(3)

NAME
thai/thwbrk.h - Thai wide-char word segmentation. SYNOPSIS
Functions int th_wbrk (const thwchar_t *s, int pos[], size_t n) Find word break positions in Thai wide-char string. int th_wbrk_line (const thwchar_t *in, thwchar_t *out, size_t n, const thwchar_t *delim) Insert word delimitors in given wide-char string. Detailed Description Thai wide-char word segmentation. Function Documentation int th_wbrk (const thwchar_t *s, intpos[], size_tn) Find word break positions in Thai wide-char string. Parameters: s : the input string to be processed pos : array to keep breaking positions n : size of pos[] Returns: the actual number of breaking positions occurred Finds word break positions in Thai string s and stores at most n breaking positions in pos[], from left to right. int th_wbrk_line (const thwchar_t *in, thwchar_t *out, size_tn, const thwchar_t *delim) Insert word delimitors in given wide-char string. Parameters: in : the input wide-char string to be processed out : the output wide-char buffer n : the size of out (as number of elements) delim : the wide-char word delimitor to insert Returns: the actual size of the processed string (as number of elements) Analyzes the input string and store the string in output buffer with the given word delimitor inserted at every word boundary. Author Generated automatically by Doxygen for libthai from the source code. Version 0.1.14 Tue Jun 17 2014 thai/thwbrk.h(3)

Check Out this Related Man Page

thai/thwcoll.h(3)						      libthai							 thai/thwcoll.h(3)

NAME
thai/thwcoll.h - Thai wide-char string collation. SYNOPSIS
Functions int th_wcstrcoll (const thwchar_t *s1, const thwchar_t *s2) Compare two Thai wide-char strings for collation. size_t th_wcstrxfrm (thwchar_t dest[], const thwchar_t *src, size_t n) Transform wide-char string into collatable form. Detailed Description Thai wide-char string collation. Function Documentation int th_wcstrcoll (const thwchar_t *s1, const thwchar_t *s2) Compare two Thai wide-char strings for collation. Parameters: s1 : first wide-char string (null-terminated) s2 : second wide-char string (null-terminated) Returns: < 0 if s1 precedes s2; 0 if s1 equals s2; > 0 if s1 succeeds s2 size_t th_wcstrxfrm (thwchar_tdest[], const thwchar_t *src, size_tn) Transform wide-char string into collatable form. Parameters: dest : the destination wide-char string buffer src : the wide-char string to transform n : the size of dest buffer (as number of elements) Returns: the number of elements required to store the result in dest, excluding the terminating ''. If the return value >= n, dest is undefined. Transforms src into a form from which comparison using wcscmp() yields the same result as that from th_wcstrcoll(). At most n characters are put in dest. Author Generated automatically by Doxygen for libthai from the source code. Version 0.1.14 Tue Jun 17 2014 thai/thwcoll.h(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to get the n-th word in a string

Hi, Suppose I do this: $ wc file.txt 96 333 6629 file.txt and I want to get the 3rd word from the left (i.e. get the string 6629) and check its value. What do I do? Thanks (3 Replies)
Discussion started by: GMMike
3 Replies

2. UNIX for Dummies Questions & Answers

breaking a word into chars

to break a word into characters.. Eg UNIX to U N I X (6 Replies)
Discussion started by: arunsubbhian
6 Replies

3. Shell Programming and Scripting

Find the position of a string and replace with another string

Hi, I have a file named "Test_2008_01_21" The file contains a string "manual" that occurs many times in the file How can i find the positions of the string "manual" in the file Ex: if the string " manual " occurs three times in the file. i want to replace the second occurance of string... (6 Replies)
Discussion started by: bab123
6 Replies

4. Shell Programming and Scripting

Find line before blank

Hello, I actually have two issues. First, here is the file the way it is now. someword someword:1 new-word new-word abcd someword someword:10 new-word new-word abcd thisis whatIneed:3 someword someword:5 new-word new-word abcd I need to get the line before the 2... (6 Replies)
Discussion started by: ddrew78
6 Replies

5. Shell Programming and Scripting

put a string before a searched string

hi all! i have a working that looks like this... file1 MALE JOHN MALE ANJO FEMALE ANNE MALE JAMES FEMALE HONEY FEMALE IZA what i want to do is insert "M" when the first string is "MALE" and insert "F" when the first string is "FEMALE". file1 M MALE ... (10 Replies)
Discussion started by: kingpeejay
10 Replies

6. UNIX for Dummies Questions & Answers

Breaking a string into four different numbers

I'm having trouble breaking a string into four different numbers. What I'm starting out with is foo='1218141 1441 1664 122222' and what I want to have is a=1218141 b=1441 c=1664 d=122222 I'm tried using some pattern matching to break the string up into these four different... (7 Replies)
Discussion started by: Azumandious
7 Replies

7. Shell Programming and Scripting

awk script replace positions if certain positions equal prescribed value

I am attempting to replace positions 44-46 with YYY if positions 48-50 = XXX. awk -F "" '{if (substr($0,48,3)=="XXX") $44="YYY"}1' OFS="" $filename > $tempfile But this is not working, 44-46 is still spaces in my tempfile instead of YYY. Any suggestions would be greatly appreciated. (9 Replies)
Discussion started by: halplessProblem
9 Replies

8. Shell Programming and Scripting

Insert text with Sed (in various positions)

Hello. I'm trying to insert text in various positions and I could only do that using pipes for each position. Example: cat file | sed -e 's#\(.\{5\}\)\(.*\)#\1:\2#g' | sed -e 's#\(.\{26\}\)\(.*\)#\1:\2#g' Insert ":" at position 5 and 26. it can be done in the same sentence, without using... (4 Replies)
Discussion started by: </kida>
4 Replies

9. Programming

Why segmentation(coredump) in the following code in C?

hi I have a method which returns char*. In this method am using switch case. I am getting segmentation error in case 49 and my code is case 49: if(intFlag == 0210) { iiIDCode = atoi(getsubstring(sReq,262,2)); l =... (7 Replies)
Discussion started by: AAKhan
7 Replies

10. Shell Programming and Scripting

Fetch entries in front of specific word till next word

Hi all I have following file which I have to edit for research purpose file:///tmp/moz-screenshot.png body, div, table, thead, tbody, tfoot, tr, th, td, p { font-family: &quot;Liberation Sans&quot;; font-size: x-small; } Drug: KRP-104 QD Drug: Placebo Drug: Metformin|Drug:... (15 Replies)
Discussion started by: Priyanka Chopra
15 Replies

11. Shell Programming and Scripting

sed relacement of word after particular string in a file

Hi All, I am trying to replace the string in a file after some particular string in the file. I am reading both string from one input file. localhostTest|http:\\localhost:7222 After string "locatTest" it should place the "http:\\localhost:7222" The below logic is replacing... (5 Replies)
Discussion started by: sharsour
5 Replies

12. Shell Programming and Scripting

Find word in a line and output in which line the word occurs / no. of times it occurred

I have a file: file.txt, which contains the following data in it. This is a file, my name is Karl, what is this process, karl is karl junior, file is a test file, file's name is file.txt My name is not Karl, my name is Karl Joey What is your name? Do you know your name and... (3 Replies)
Discussion started by: anuragpgtgerman
3 Replies

13. Shell Programming and Scripting

Copying characters on each line in a file

Hello, I would like to copy the first and third char on each line of a file and place them in the 14h and 17th char positions. The file name is listed first and is 6 char's and the dir name is second and also same char size on each line. The file has thousands of lines. Initial... (6 Replies)
Discussion started by: dmm
6 Replies

14. Shell Programming and Scripting

To get a single string in output

I am looking forward to achive below expecrted result, but when I am trying i could now get the whole string between two / / what I am getting is the last word i need to take complete line which is between / / ignore the line after , and before / which is (Test failed: text expected not to... (8 Replies)
Discussion started by: mirwasim
8 Replies

15. Shell Programming and Scripting

How to remove everything after a word containing string?

Hello, I wish to remove any word coming after searched string found in a word. source*.txt #!bin/bash #test1 http://www.aa.bb.cc http://www.xx.yy http://www.11.22.44 #test2 http://www.11.rr.cd http://www.01.yy http://www.yy.22.tt #test3 http://www.22.qq.fc http://www.0x.yy... (15 Replies)
Discussion started by: baris35
15 Replies