Chromium Code Reviews

Side by Side Diff: packages/charted/lib/core/text_metrics/segmentation.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
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; 9 library charted.core.text_metrics.segmentation;
10 10
(...skipping 48 matching lines...)
59 int previousType = 0; 59 int previousType = 0;
60 for (var iter = s.runes.iterator; iter.moveNext();) { 60 for (var iter = s.runes.iterator; iter.moveNext();) {
61 int currentType = _typeForRune(iter.current); 61 int currentType = _typeForRune(iter.current);
62 if (GRAPHEME_BREAK_TABLE[previousType * 12 + currentType] == 1) { 62 if (GRAPHEME_BREAK_TABLE[previousType * 12 + currentType] == 1) {
63 indices.add(iter.rawIndex); 63 indices.add(iter.rawIndex);
64 } 64 }
65 previousType = currentType; 65 previousType = currentType;
66 } 66 }
67 return indices; 67 return indices;
68 } 68 }
OLDNEW
« no previous file with comments | « packages/charted/lib/core/text_metrics.dart ('k') | packages/charted/lib/core/text_metrics/segmentation_data.dart » ('j') | no next file with comments »

Powered by Google App Engine