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

Side by Side Diff: sdk/lib/io/string_transformer.dart

Issue 2880543002: Revert "Change some platform libraries to use `part of URI`." (Closed)
Patch Set: Created 3 years, 7 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/io/stdio.dart ('k') | sdk/lib/io/sync_socket.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:io"; 5 part of dart.io;
6 6
7 /// The current system encoding. 7 /// The current system encoding.
8 /// 8 ///
9 /// This us used for converting from bytes to/from String when 9 /// This us used for converting from bytes to/from String when
10 /// communicating on stdin, stdout and stderr. 10 /// communicating on stdin, stdout and stderr.
11 /// 11 ///
12 /// On Windows this will use the currently active code page for the 12 /// On Windows this will use the currently active code page for the
13 /// conversion. On all other systems it will always use UTF-8. 13 /// conversion. On all other systems it will always use UTF-8.
14 const SystemEncoding SYSTEM_ENCODING = const SystemEncoding(); 14 const SystemEncoding SYSTEM_ENCODING = const SystemEncoding();
15 15
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 _WindowsCodePageDecoderSink(this._sink); 118 _WindowsCodePageDecoderSink(this._sink);
119 119
120 void close() { 120 void close() {
121 _sink.close(); 121 _sink.close();
122 } 122 }
123 123
124 void add(List<int> bytes) { 124 void add(List<int> bytes) {
125 _sink.add(_WindowsCodePageDecoder._decodeBytes(bytes)); 125 _sink.add(_WindowsCodePageDecoder._decodeBytes(bytes));
126 } 126 }
127 } 127 }
OLDNEW
« no previous file with comments | « sdk/lib/io/stdio.dart ('k') | sdk/lib/io/sync_socket.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698