void OnStart()
{
//--- ソース文字列を小文字で定義する
string text=" - this string, written in lowercase, must be written in uppercase";
//--- ソース文字列をログで表示する
Print("Source line:\n", text);
//--- すべての文字列文字を大文字に変換し、結果をログに表示する
if(StringToUpper(text))
Print("The original string after using the StringToUpper() function:\n", text);
/*
結果
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
*/
}
|