Chromium Code Reviews

Unified Diff: sdk/lib/utf/utf_stream.dart

Issue 12817003: Change getRange to sublist. Make getRange deprecated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: sdk/lib/utf/utf_stream.dart
diff --git a/sdk/lib/utf/utf_stream.dart b/sdk/lib/utf/utf_stream.dart
index 00717b83b0ae7356e36ce510d5ec82aa4016bdf9..1480aa156ab1ff136dcbc75ba63070ed106f6576 100644
--- a/sdk/lib/utf/utf_stream.dart
+++ b/sdk/lib/utf/utf_stream.dart
@@ -52,7 +52,7 @@ abstract class _StringDecoder
_carry.addAll(carry);
_carry.addAll(bytes);
} else {
- _carry = bytes.getRange(currentPos, bytes.length - currentPos);
+ _carry = bytes.sublist(currentPos);
}
break;
} else {

Powered by Google App Engine