跳到正文
本页尚未翻译成中文,以下为英文原文。 查看英文版

upper Function ​

upper converts all cased letters in the given string to uppercase.

Examples ​

shellsession
> upper("hello")
HELLO
> upper("алло!")
АЛЛО!

This function uses Unicode's definition of letters and of upper- and lowercase.

  • lower converts letters in a string to lowercase.
  • title converts the first letter of each word in a string to uppercase.

基于 MPL-2.0 许可证发布。