touppercase/2 and upper/2—convert a string to all uppercase characters

The touppercase/2 and upper/2 functions convert a string to all uppercase characters. 

Note

The upper/2 function has the same functionality as touppercase/2 but exists only as a function.

touppercase($ORGSTR,$NEWSTR)
$NEWSTR=touppercase($ORGSTR)
$NEWSTR=upper($ORGSTR)

touppercase/2 and upper/2 arguments

Argument

Mode

Type

Description

$ORGSTR

Input

STRING

Specifies the string to be converted to uppercase

$NEWSTR

Output

STRING

Returns the all uppercase version of original string

Use the touppercase/2 function to convert the string specified in the $ORGSTR argument to the same string in all uppercase characters returned in $NEWSTR. This function is locale sensitive.

touppercase/2 example

$E.mc_host = touppercase($E.mc_host);
Was this page helpful? Yes No Submitting... Thank you

Comments