This looks wrong. ' in C/C++ means character, not string. It's possible, though strange, to have a really long character, but almost certainly not what you intended.
Please look into the example.
My source file is like,
00,57,3,2008-07-24 06:30:06
10,1,8025171,"1M00",17907023,2008-07-23 18:16:58
10,2,8025171,"1M00",17907023,2008-07-23 18:17:01
99,184
What should i do if i want output like...
hello,00,57,3,2008-07-24 06:30:06... (7 Replies)
Hello All,
How to concatenate a string to a variable in a script
I'm having a file which is consisting of data and i need to extract the first line of the file and append it to a string.
/tmp/samp.list containg 60000
I like to concatenate it with a string (SS_)
grep -w SS_$(head -1... (1 Reply)
I have a file with
<suit:run date="Trump Tue 06/19/2012 11:41 AM EDT" machine="garg-ln" build="19921" level="beta" release="6.1.5" os="Linux">
Need to find word "build" then
extract build number, which is 19921 also
release number, which is 6.1.5 then
concatenate them to one variable as... (6 Replies)
I am having a text file which is having more than 200 lines.
EX:
001010122 12000 BIB 12000 11200 1200003
001010122 2000 AND 12000 11200 1200003
001010122 12000 KVB 12000 11200 1200003
In the above file i want to search for string KVB and add/replace... (1 Reply)
Dear All
I am having a text file which is having more than 200 lines.
EX:
001010122 12000 BIB 12000 11200 1200003
001010122 2000 AND 12000 11200 1200003
001010122 12000 KVB 12000 11200 1200003
In the above file i want to search for string KVB... (5 Replies)
Hello,
I want to concatenate 2-columns by 2-columns separated by colon. How can I do so? For example, I have a text file containing 6 columns separated by tab. I want to concatenate column 1 and 2; column 3 and 4; column 5 and 6, respectively, and put a colon in between.
input file:
1 0 0 1... (10 Replies)
I want to search a small string in a large string and find the locations of the string. For this I used grep "string" -ob <file name where the large string is stored>. Now this gives me the locations of that string. Now how do I store these locations in a text file.
Please use CODE tags as... (7 Replies)
I have below code inside my awk script
if ( $0 ~ /SVC IN:/ )
{
svc_in=substr( $0,23 , 3);
if (msg_start == 1 && msg_end == 0)
{
msg_arr=$0;
}
}
else if ( $0 ~ /^SVC OUT:/ )
{
svc_out=substr( $0, 9, 3);
if (msg_start == 1 && msg_end == 0)
... (6 Replies)
Discussion started by: bhagya123
6 Replies
LEARN ABOUT CENTOS
th_macthai2uni
thai/thwchar.h(3) libthai thai/thwchar.h(3)NAME
thai/thwchar.h -
Wide char support for Thai.
SYNOPSIS
Macros
#define THWCHAR_ERR (~(thwchar_t)0)
Wide-character value indicating error.
Typedefs
typedef wchar_t thwchar_t
Thai character type for storing Unicode character.
Functions
thwchar_t th_tis2uni (thchar_t c)
Convert character code from TIS-620 to Unicode.
int th_tis2uni_line (const thchar_t *s, thwchar_t *result, size_t n)
Convert string from TIS-620 to Unicode.
thwchar_t th_winthai2uni (thchar_t c)
Convert character code from Thai Windows extended code to Unicode.
thwchar_t th_macthai2uni (thchar_t c)
Convert character code from Mac Thai extended code to Unicode.
thchar_t th_uni2tis (thwchar_t wc)
Convert character code from Unicode to TIS-620.
int th_uni2tis_line (const thwchar_t *s, thchar_t *result, size_t n)
Convert string from Unicode to TIS-620.
thchar_t th_uni2winthai (thwchar_t wc)
Convert character code from Unicode to Thai Windows extended code.
thchar_t th_uni2macthai (thwchar_t wc)
Convert character code from Unicode to Mac Thai extended code.
Detailed Description
Wide char support for Thai.
Function Documentation
thwchar_t th_macthai2uni (thchar_tc)
Convert character code from Mac Thai extended code to Unicode.
Parameters:
c : Mac Thai character/glyph to convert
Returns:
Corresponding Unicode code
thwchar_t th_tis2uni (thchar_tc)
Convert character code from TIS-620 to Unicode.
Parameters:
c : TIS-620 character to convert
Returns:
Corresponding Unicode code
int th_tis2uni_line (const thchar_t *s, thwchar_t *result, size_tn)
Convert string from TIS-620 to Unicode.
Parameters:
s : source TIS-620 string (null-terminated)
result : buffer for storing resulting Unicode string
n : size of result buffer (as number of elements)
Returns:
the length of the output Unicode string
thchar_t th_uni2macthai (thwchar_twc)
Convert character code from Unicode to Mac Thai extended code.
Parameters:
wc : Unicode code to convert
Returns:
Corresponding Mac Thai extended code, or TH_ERR if conversion is impossible
thchar_t th_uni2tis (thwchar_twc)
Convert character code from Unicode to TIS-620.
Parameters:
wc : Unicode character to convert
Returns:
Corresponding TIS-620 code, or TH_ERR if conversion is impossible
int th_uni2tis_line (const thwchar_t *s, thchar_t *result, size_tn)
Convert string from Unicode to TIS-620.
Parameters:
s : source Unicode string (null-terminated)
result : buffer for storing resulting TIS-620 string
n : size of result buffer (as number of elements)
Returns:
the length of the output TIS-620 string
Note that, since the conversion is lossy, some characters in the convesion result may be TH_ERR, indicating conversion error.
thchar_t th_uni2winthai (thwchar_twc)
Convert character code from Unicode to Thai Windows extended code.
Parameters:
wc : Unicode code to convert
Returns:
Corresponding Thai Windows extended code, or TH_ERR if conversion is impossible
thwchar_t th_winthai2uni (thchar_tc)
Convert character code from Thai Windows extended code to Unicode.
Parameters:
c : Thai Windows character/glyph to convert
Returns:
Corresponding Unicode code
Author
Generated automatically by Doxygen for libthai from the source code.
Version 0.1.14 Tue Jun 17 2014 thai/thwchar.h(3)