大写与标题之间的区别 [英] Difference between uppercase and titlecase

查看:199
本文介绍了大写与标题之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大写标题之间的区别是什么。
坦率地说,我之前从未听说过 titlecase

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

在java中,两者都有单独的方法:

In java there are seperate methods for both:


  • Character.isTitleCase(char)

  • Character.isUpperCase(char)

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

有些网站将其定义如下:

Some websites define it as follows:


TitleCase:匹配组合大写字母和小写字母的字符,例如Nj和Dz

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

但必须有更多: isTitleCase(char)方法只接受1个字符。所以 - 如果是这种情况 - 那么这个方法至少需要2个字符。

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.

推荐答案

它只接受一个 Unicode 字符。事实证明DŽ实际只有一个字符:看它以等宽字体显示的方式:DŽ。标题版本为Dž和小写版本dž也存在。

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.

这篇关于大写与标题之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆