Core Function UC

From Sputnik Wiki
Revision as of 12:38, 14 June 2015 by UberFoX (Talk | contribs)
Jump to: navigation, search
UC( <expression> )

Contents

Description

The string to use.

Parameters

expression

The string to evaluate.

Return Value

Uppercase string.

Example

$result = UC("testing");
Println("Result:" , $result); // Prints TESTING

Modify the string in place

$value = "testing";
Println($value); // Prints testing
// Modify the string in place
fixed ($p = $value)
{
	my $n = StrLen($value);
	my $i = 0;
	while ($n-- > 0)
	{
		$p[$i] = UC($p[$i]);
		$i++;
	}
}
// All done
Println($value); // Prints TESTING
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox