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

Side by Side Diff: sdk/lib/convert/string_conversion.dart

Issue 2973823002: Revert "Remaining private libs" (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « sdk/lib/convert/line_splitter.dart ('k') | sdk/lib/convert/utf.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of "dart:convert"; 5 part of "convert.dart";
6 6
7 /** 7 /**
8 * This class provides an interface for converters to 8 * This class provides an interface for converters to
9 * efficiently transmit String data. 9 * efficiently transmit String data.
10 * 10 *
11 * Instead of limiting the interface to one non-chunked String it accepts 11 * Instead of limiting the interface to one non-chunked String it accepts
12 * partial strings or can be transformed into a byte sink that 12 * partial strings or can be transformed into a byte sink that
13 * accepts UTF-8 code units. 13 * accepts UTF-8 code units.
14 * 14 *
15 * This abstract class will likely get more methods over time. Implementers are 15 * This abstract class will likely get more methods over time. Implementers are
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 _decoder.convert(chunk, startIndex, endIndex); 345 _decoder.convert(chunk, startIndex, endIndex);
346 if (_buffer.isNotEmpty) { 346 if (_buffer.isNotEmpty) {
347 String accumulated = _buffer.toString(); 347 String accumulated = _buffer.toString();
348 _chunkedSink.addSlice(accumulated, 0, accumulated.length, isLast); 348 _chunkedSink.addSlice(accumulated, 0, accumulated.length, isLast);
349 _buffer.clear(); 349 _buffer.clear();
350 return; 350 return;
351 } 351 }
352 if (isLast) close(); 352 if (isLast) close();
353 } 353 }
354 } 354 }
OLDNEW
« no previous file with comments | « sdk/lib/convert/line_splitter.dart ('k') | sdk/lib/convert/utf.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698