是否可以使用 ICU4C 为例如英文文本获得适当的大写,但无需构建任何自定义的非大写单词集?说,鉴于pining for the fjords
我想获得Pining for the Fjords
.
With ucasemap_utf8ToTitle()
and UnicodeString::toTitle
I get Pining For The Fjords
,无论BreakIterator
我使用哪个或语言环境。
是否可以使用 ICU4C 为例如英文文本获得适当的大写,但无需构建任何自定义的非大写单词集?说,鉴于pining for the fjords
我想获得Pining for the Fjords
.
With ucasemap_utf8ToTitle()
and UnicodeString::toTitle
I get Pining For The Fjords
,无论BreakIterator
我使用哪个或语言环境。
@Jongware 应该很好地解释这一点。您的问题可能是 - ICU 是否有非大写单词列表?
但ICU的简短回答是:不。
CLDR(从 ICU 获取数据的地方)曾经有“停用词”用于搜索目的,但它们没有得到很好的维护和删除:http ://unicode.org/cldr/trac/ticket/5204