问题
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