1 | <?php |
||
10 | class LetterCaseParser extends BaseParser |
||
11 | { |
||
12 | const ATTR_LOWERCASE_MAPPING = 'lc'; |
||
13 | const ATTR_SIMPLE_LOWERCASE_MAPPING = 'slc'; |
||
14 | const ATTR_UPPERCASE_MAPPING = 'uc'; |
||
15 | const ATTR_SIMPLE_UPPERCASE_MAPPING = 'suc'; |
||
16 | const ATTR_TITLECASE_MAPPING = 'tc'; |
||
17 | const ATTR_SIMPLE_TITLECASE_MAPPING = 'stc'; |
||
18 | const ATTR_FOLDING_MAPPING = 'cf'; |
||
19 | const ATTR_SIMPLE_FOLDING_MAPPING = 'scf'; |
||
20 | |||
21 | /** |
||
22 | * @return LetterCase |
||
23 | */ |
||
24 | protected function parse() |
||
30 | |||
31 | /** |
||
32 | * @return Mappings |
||
33 | */ |
||
34 | private function parseMappings() |
||
43 | |||
44 | /** |
||
45 | * @return Mapping |
||
46 | */ |
||
47 | private function parseLowercaseMapping() |
||
54 | |||
55 | /** |
||
56 | * @return Mapping |
||
57 | */ |
||
58 | private function parseUppercaseMapping() |
||
65 | |||
66 | /** |
||
67 | * @return Mapping |
||
68 | */ |
||
69 | private function parseTitlecaseMapping() |
||
76 | |||
77 | /** |
||
78 | * @return Mapping |
||
79 | */ |
||
80 | private function parseFoldingMapping() |
||
87 | |||
88 | /** |
||
89 | * @param string $attribute |
||
90 | * @return Codepoint[] |
||
91 | */ |
||
92 | private function parseMapping($attribute) |
||
101 | |||
102 | |||
103 | /** |
||
104 | * @param string $attribute |
||
105 | * @return Codepoint |
||
106 | */ |
||
107 | private function parseSimpleMapping($attribute) |
||
116 | } |