OLD | NEW |
1 // | 1 // |
2 // Copyright 2014 Google Inc. All rights reserved. | 2 // Copyright 2014 Google Inc. All rights reserved. |
3 // | 3 // |
4 // Use of this source code is governed by a BSD-style | 4 // Use of this source code is governed by a BSD-style |
5 // license that can be found in the LICENSE file or at | 5 // license that can be found in the LICENSE file or at |
6 // https://developers.google.com/open-source/licenses/bsd | 6 // https://developers.google.com/open-source/licenses/bsd |
7 // | 7 // |
8 | 8 |
9 library charted.core.text_metrics.segmentation_utils; | 9 library charted.core.text_metrics.segmentation_utils; |
10 | 10 |
11 const CODE_CATEGORY_OTHER = 0; | 11 const CODE_CATEGORY_OTHER = 0; |
12 | 12 |
13 const CodeUnitCategory = const{ | 13 const CodeUnitCategory = const{ |
14 'Other': CODE_CATEGORY_OTHER, | 14 'Other': CODE_CATEGORY_OTHER, |
15 'CR': 1, | 15 'CR': 1, |
16 'LF': 2, | 16 'LF': 2, |
17 'Control': 3, | 17 'Control': 3, |
18 'Extend': 4, | 18 'Extend': 4, |
19 'SpacingMark': 5, | 19 'SpacingMark': 5, |
20 'L': 6, | 20 'L': 6, |
21 'V': 7, | 21 'V': 7, |
22 'T': 8, | 22 'T': 8, |
23 'LV': 9, | 23 'LV': 9, |
24 'LVT': 10, | 24 'LVT': 10, |
25 'Regional_Indicator': 11 | 25 'Regional_Indicator': 11 |
26 }; | 26 }; |
OLD | NEW |