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

Unified Diff: sdk/lib/convert/encoding.dart

Issue 2754013002: Format all dart: library files (Closed)
Patch Set: Format all dart: library files Created 3 years, 9 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 | « sdk/lib/convert/converter.dart ('k') | sdk/lib/convert/html_escape.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/convert/encoding.dart
diff --git a/sdk/lib/convert/encoding.dart b/sdk/lib/convert/encoding.dart
index 11ae3005b4623febc82993c11aa7942f34e0b8d8..95912169caa9e81165e009395e258a631f479c99 100644
--- a/sdk/lib/convert/encoding.dart
+++ b/sdk/lib/convert/encoding.dart
@@ -15,9 +15,9 @@ abstract class Encoding extends Codec<String, List<int>> {
Future<String> decodeStream(Stream<List<int>> byteStream) {
return byteStream
- .transform(decoder)
- .fold(new StringBuffer(), (buffer, string) => buffer..write(string))
- .then((buffer) => buffer.toString());
+ .transform(decoder)
+ .fold(new StringBuffer(), (buffer, string) => buffer..write(string))
+ .then((buffer) => buffer.toString());
}
/**
@@ -31,7 +31,7 @@ abstract class Encoding extends Codec<String, List<int>> {
// All aliases (in lowercase) of supported encoding from
// http://www.iana.org/assignments/character-sets/character-sets.xml.
- static Map<String, Encoding> _nameToEncoding = <String, Encoding> {
+ static Map<String, Encoding> _nameToEncoding = <String, Encoding>{
// ISO_8859-1:1987.
"iso_8859-1:1987": LATIN1,
"iso-ir-100": LATIN1,
@@ -54,7 +54,7 @@ abstract class Encoding extends Codec<String, List<int>> {
"ibm367": ASCII,
"cp367": ASCII,
"csascii": ASCII,
- "ascii": ASCII, // This is not in the IANA official names.
+ "ascii": ASCII, // This is not in the IANA official names.
// UTF-8.
"csutf8": UTF8,
« no previous file with comments | « sdk/lib/convert/converter.dart ('k') | sdk/lib/convert/html_escape.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698