Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Unified Diff: packages/utf/lib/src/utf_16_code_unit_decoder.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/utf/lib/src/utf8.dart ('k') | packages/utf/lib/src/utf_stream.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/utf/lib/src/utf_16_code_unit_decoder.dart
diff --git a/packages/utf/lib/src/utf_16_code_unit_decoder.dart b/packages/utf/lib/src/utf_16_code_unit_decoder.dart
index a0a4b3c386c99fa7f1f703729d92664e7240291b..7d9e98fa39e948b5bb7f4a13d1532f9672a19364 100644
--- a/packages/utf/lib/src/utf_16_code_unit_decoder.dart
+++ b/packages/utf/lib/src/utf_16_code_unit_decoder.dart
@@ -19,11 +19,12 @@ class Utf16CodeUnitDecoder implements Iterator<int> {
final int replacementCodepoint;
int _current = null;
- Utf16CodeUnitDecoder(List<int> utf16CodeUnits, [int offset = 0, int length,
- int this.replacementCodepoint =
- UNICODE_REPLACEMENT_CHARACTER_CODEPOINT]) :
- utf16CodeUnitIterator =
- (new ListRange(utf16CodeUnits, offset, length)).iterator;
+ Utf16CodeUnitDecoder(List<int> utf16CodeUnits,
+ [int offset = 0,
+ int length,
+ int this.replacementCodepoint = UNICODE_REPLACEMENT_CHARACTER_CODEPOINT])
+ : utf16CodeUnitIterator =
+ (new ListRange(utf16CodeUnits, offset, length)).iterator;
Utf16CodeUnitDecoder.fromListRangeIterator(
ListRangeIterator this.utf16CodeUnitIterator,
@@ -61,7 +62,7 @@ class Utf16CodeUnitDecoder implements Iterator<int> {
_current = value;
} else {
if (nextValue >= UNICODE_UTF16_SURROGATE_UNIT_0_BASE &&
- nextValue < UNICODE_UTF16_SURROGATE_UNIT_1_BASE) {
+ nextValue < UNICODE_UTF16_SURROGATE_UNIT_1_BASE) {
utf16CodeUnitIterator.backup();
}
if (replacementCodepoint != null) {
@@ -80,4 +81,3 @@ class Utf16CodeUnitDecoder implements Iterator<int> {
return true;
}
}
-
« no previous file with comments | « packages/utf/lib/src/utf8.dart ('k') | packages/utf/lib/src/utf_stream.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698