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