Chromium Code Reviews| Index: sdk/lib/convert/utf.dart |
| diff --git a/sdk/lib/convert/utf.dart b/sdk/lib/convert/utf.dart |
| index 332598759af6b4276d9e36506699df1f656df2ae..59a21921866fb917a790d67f297fc64454644d61 100644 |
| --- a/sdk/lib/convert/utf.dart |
| +++ b/sdk/lib/convert/utf.dart |
| @@ -436,12 +436,13 @@ class _Utf8Decoder { |
| void addSingleBytes(int from, int to) { |
| assert(from >= startIndex && from <= endIndex); |
| assert(to >= startIndex && to <= endIndex); |
| - if (from == 0 && to == codeUnits.length) { |
| - _stringSink.write(new String.fromCharCodes(codeUnits)); |
| - } else { |
| - _stringSink.write( |
| - new String.fromCharCodes(codeUnits.sublist(from, to))); |
| - } |
| + _stringSink.write(new String.fromCharCodes(codeUnits, from, to)); |
| + // if (from == 0 && to == codeUnits.length) { |
|
floitsch
2014/08/29 11:13:20
dead code?
Søren Gjesse
2014/08/29 11:16:04
Code in comment.
|
| + // _stringSink.write(new String.fromCharCodes(codeUnits)); |
| + // } else { |
| + // _stringSink.write( |
| + // new String.fromCharCodes(codeUnits.sublist(from, to))); |
| + // } |
| } |
| int i = startIndex; |