]> git.saurik.com Git - apple/icu.git/blame - icuSources/data/brkitr/rules/title.txt
ICU-64243.0.1.tar.gz
[apple/icu.git] / icuSources / data / brkitr / rules / title.txt
CommitLineData
f3c0d7a5 1# Copyright (C) 2016 and later: Unicode, Inc. and others.
0f5d89e8 2# License & terms of use: http://www.unicode.org/copyright.html
f3c0d7a5 3#
2ca993e8 4# Copyright (c) 2002-2015, International Business Machines Corporation and
b75a7d8f
A
5# others. All Rights Reserved.
6#
7# Title Casing Break Rules
8#
9
0f5d89e8 10!!quoted_literals_only;
57a6839d 11
b75a7d8f
A
12$CaseIgnorable = [[:Mn:][:Me:][:Cf:][:Lm:][:Sk:] \u0027 \u00AD \u2019];
13$Cased = [[:Upper_Case:][:Lower_Case:][:Lt:] - $CaseIgnorable];
57a6839d 14$NotCased = [[^ $Cased] - $CaseIgnorable];
b75a7d8f 15
57a6839d
A
16# If the iterator begins on a CaseIgnorable, advance it past it/them.
17# This can occur at the start-of-text, or after application of the
18# safe-reverse rule.
19
20($CaseIgnorable | $NotCased)*;
21
22# Normal exact forward rule: beginning at the start of a word
23# (at a cased character), advance through the word and through
24# the uncased characters following the word.
25
26$Cased ($Cased | $CaseIgnorable)* ($NotCased | $CaseIgnorable)*;