Difference between uppercase and titlecase

让人想犯罪 __ 提交于 2019-12-04 16:03:31

问题


What's the difference between uppercase and titlecase. Frankly, I never heard of titlecase before.

In java there are seperate methods for both:

  • Character.isTitleCase(char)
  • Character.isUpperCase(char)

Some websites define it as follows:

TitleCase: Matches characters that combine an uppercase letter with a lowercase letter, such as Nj and Dz

But there must be more to it: the isTitleCase(char) method only accepts 1 character. So - if this was the case - then this method would need at least 2 characters.


回答1:


It accepts only one Unicode character. It turns out that DŽ actually is only one character: look how it shows in monospaced font: DŽ. The titlecase version is Dž and a lowercase version dž exists as well.



来源:https://stackoverflow.com/questions/31770995/difference-between-uppercase-and-titlecase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!