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

title Function ​

title converts the first letter of each word in the given string to uppercase.

Examples ​

shellsession
> title("hello world")
Hello World

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

  • upper converts all letters in a string to uppercase.
  • lower converts all letters in a string to lowercase.

基于 MPL-2.0 许可证发布。