void OnStart()
{
//--- definimos a string de origem em letras minúsculas
string text=" - this string, written in lowercase, must be written in uppercase";
//--- exibimos no log a string de origem
Print("Source line:\n", text);
//--- convertemos todos os símbolos da string em letras maiúsculas e enviamos o resultado para o log
if(StringToUpper(text))
Print("The original string after using the StringToUpper() function:\n", text);
/*
Resultado
Source line:
- this string, written in lowercase, must be written in uppercase
The original string after using the StringToUpper() function:
- THIS STRING, WRITTEN IN LOWERCASE, MUST BE WRITTEN IN UPPERCASE
*/
}
|