Swift大写和小写字符串
示例
要使字符串中的所有字符都大写或小写:
2.2let text = "AaBbCc"3.0let uppercase =text.uppercaseString// "AABBCC"
let lowercase =text.lowercaseString// "aabbcc"
let text = "AaBbCc"let uppercase = text.uppercased() // "AABBCC"
let lowercase = text.lowercased() // "aabbcc"
以上是 Swift大写和小写字符串 的全部内容, 来源链接: utcz.com/z/326187.html