a46dbcf2ea
X-SVN-Rev: 12026
22 lines
592 B
Plaintext
22 lines
592 B
Plaintext
# Copyright (c) 2002, International Business Machines Corporation and
|
|
# others. All Rights Reserved.
|
|
#
|
|
# Title Casing Break Rules
|
|
#
|
|
|
|
$CaseIgnorable = [[:Mn:][:Me:][:Cf:][:Lm:][:Sk:] \u0027 \u00AD \u2019];
|
|
$Cased = [[:Upper_Case:][:Lower_Case:][:Lt:] - $CaseIgnorable];
|
|
$NotCased = [^ $Cased];
|
|
|
|
#
|
|
# If the iterator starts on a cased item, advance through all adjacent cased items plus
|
|
# any non-cased stuff, to reach the start of the next (cased) word.
|
|
#
|
|
($Cased | $CaseIgnorable)* $NotCased*;
|
|
|
|
#
|
|
# Reverse Rules
|
|
#
|
|
!$NotCased* ($Cased | $CaseIgnorable)* $NotCased?;
|
|
|