wconv(3C)wconv(3C)NAME
towupper(), towlower() - translate wide characters
SYNOPSIS
Remarks:
These functions are compliant with the XPG4 Worldwide Portability Interface wide-character conversion functions. They parallel the 8-bit
character conversion functions defined in conv(3C).
DESCRIPTION
and have as domain a the value of which is representable as a or the value If the argument has any other value, the behavior is undefined.
If the argument of represents a lowercase letter, the result is the corresponding uppercase letter. If the argument of represents an
uppercase letter, the result is the corresponding lowercase letter. All other arguments are returned unchanged.
Definitions for these functions, the types and the value are provided in the header.
EXTERNAL INFLUENCES
Locale
The category determines the translations to be done.
International Code Set Support
Single-byte and multi-byte character code sets are supported.
AUTHOR
was developed by IBM, OSF, and HP.
SEE ALSO conv(3C), multibyte(3C), wctype(3C), setlocale(3C), lang(5), thread_safety(5).
STANDARDS CONFORMANCE wconv(3C)
Check Out this Related Man Page
conv(3C)conv(3C)NAME
toupper(), tolower(), _toupper(), _tolower(), toascii() - translate characters
SYNOPSIS DESCRIPTION
and have as domain the range of getc(3S): the integers from -1 through 255. If the argument of represents a lower-case letter, the result
is the corresponding upper-case letter. If the argument of represents an upper-case letter, the result is the corresponding lower-case
letter. All other arguments in the domain are returned unchanged. Arguments outside the domain cause undefined results.
The macros and are identical to and respectively.
yields its argument with all bits that are not part of a standard 7-bit ASCII character cleared; it is intended for compatibility with
other systems.
WARNINGS
is supplied both as a library function and as a macro defined in the header. Normally, the macro version is used. To obtain the library
function, either use a to remove the macro definition or, if compiling in ANSI C mode, enclose the function name in parenthesis or take its
address. The following examples use the library function for
or
The following example use the library function for
EXTERNAL INFLUENCES
Locale
The category determines the translations to be done.
International Code Set Support
Single-byte character code sets are supported.
AUTHOR
was developed by IBM, OSF, and HP.
SEE ALSO ctype(3C), getc(3S), setlocale(3C), lang(5), thread_safety(5).
STANDARDS CONFORMANCE conv(3C)
How can I grep for a certain letter that only shows on the 3rd letter or character.
ex:
ASGHDY
SHTYRD
SDTYRD
IGIKGD
I only want the TY part of the 3rd character
so output would only be SHTYRD and DDTYRD - I only want the TY on the 3rd character.
THANKS (5 Replies)
Dear friends,
i am writing csh script
i have one dat file containing following data.like this.
08FD3 03A26 000FA0 FFFF0 BBA0F 00000 00000
from the above file i want to read each letter and store it in one variable.
how it is possible.
please help (7 Replies)
Hi,
I want to convert the first letter of this word from lowecase to uppercase.
Assume a letter united. I want to translate to United
Please let me know a simple way to do that.
Thanks. (22 Replies)
should be a simple question, I am trying to uppercase every first character in a word on the list.
abc
google
cnn
services
My first thought was sed 'y/^/^/', but it changed all the characters, not just the first character.
any thoughts? (7 Replies)
Hi
I have e.g. VAR1=january and I need to change it into VAR1=January.
How to change value of VAR1 variable to always set first character uppercase and other lowercase ?
thx for help. (9 Replies)
I have an requirement. There is a file which has the below contents
Unix|123|17-01-2010
....
....
....
....
and so an
now each letter has a corresponding predefined mapping letter in order to mask the original data.(for example U = A,
n=b, i=c, x=d, same like number 1=9,2=8,3=7. Also... (8 Replies)
Input file
>Read_1
XXXXXXXXXXSDFXXXXXDS (condition 1: After the last "X" per line, if the distance is less than or equal to 3 letter, replace those not "X" letter with "X")
TREXXXXXXXSDFXXXXXDS (condition 2: Before the first "X" per line, if the distance is less than or equal to 3 letter,... (12 Replies)
Hi every body!
I wrote script on Fedora (bash shell) to check whether a tring enter from user console is start with a uppercase/lowercase letter or a digit. But with this script i have some problem when I enter from character from 'b' to 'z' --> result is uppercase. This code look like ok but i... (9 Replies)
Hi,
I am trying to insert a "_" character in front of capital letters in a string. For instance:
HappyDaysAreHereAgain
needs to become
Happy_Days_Are_Here_Again
I know how to do this with sed, but I am writing an awk script, which does several things. Also, I have already set FS in order... (9 Replies)
hey :)
if i have a variable that is
example=lewisdenny(copywrite symbol)
so its not a nomal letter but a symbol, how can i remove everything in the varible that isnt letter or number thanks :)
and as a side little question do you know how to remove .zip from a file like if i
ls... (7 Replies)
Hi !
Is there a more convenient way to do the following:
When, in $2, there is more then one letter (separated by ","), it returns the letter on the second position to a new line in $2 with the same content in $1 and $3 as the line this letter comes from.
infile:
aaaaa A,B 1,2,3,4,5... (6 Replies)
When using getopt_long in g++ I get an error
./source/GetVel.cc:122:40: warning: multi-character character constant
./source/GetVel.cc:162:14: warning: multi-character character constant
Part of the code is shown below. As I might have a lot of options, I am thinking
of using the option... (9 Replies)
Hi !
It is a general question.
When an awk script looks like:
#! bin/awk
function example(i){
<body>
}
{
example(1) #the function uses input_1 and return output_a
}
{
example(2) #the function uses previous output_a as an input and returns... (15 Replies)
Hi,
I need to replace, as the title says, the first letter of each line (when it's not a number) by the same letter, but capital.
For instance :
hello
Who
123pass
Would become :
Hello
Who
123pass
Is there a way with sed to do that ? Or other unix command ?
Thank you :) (7 Replies)