toUpperCase()

描述

把字串中的英文字母轉換成大寫。

toUpperCase() 會修改原字串而不是回傳轉換後的新字串。

語法


string.toUpperCase()

參數

string : String 物件 (字串)

回傳

無回傳值

範例

StringCaseChanges

See also

String
toLowerCase()


語法參考主頁面

The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.