美文网首页
StringUtils. capitalize

StringUtils. capitalize

作者: 李炳龙_搜狐 | 来源:发表于2019-06-19 10:58 被阅读0次

Capitalizes a String changing the first character to title case as per Character.toTitleCase(int). No other characters are changed.

注意“the first character to title case”的含义,首先这里改变的是字符串的第一个字母。用的是toTitleCase,而不是toUpperCase,区别在于,对于dz这样的字母(即使你看上去是两个字母,其他它是一个字母,不信你可以复制一下,看能复制一半不?)。toUpperCase是DZ,toTitleCase是Dz

相关文章

网友评论

      本文标题:StringUtils. capitalize

      本文链接:https://www.haomeiwen.com/subject/voeqfctx.html