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

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

Issue 22872012: Remove Encoding-enum from dart:io and add interface in dart:convert. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typo. Created 7 years, 4 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/_internal/pub/test/test_pub.dart ('k') | sdk/lib/convert/encoding.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/convert/ascii.dart
diff --git a/sdk/lib/convert/ascii.dart b/sdk/lib/convert/ascii.dart
index bea9680aea207064ff8311e34b3e61aaa9365c34..56d6c89b6938523d5865ba00e91cc604331924c9 100644
--- a/sdk/lib/convert/ascii.dart
+++ b/sdk/lib/convert/ascii.dart
@@ -24,7 +24,7 @@ const int _ASCII_MASK = 0x7F;
* An [AsciiCodec] allows encoding strings as ASCII bytes
* and decoding ASCII bytes to strings.
*/
-class AsciiCodec extends _Encoding {
+class AsciiCodec extends Encoding {
final bool _allowInvalid;
/**
* Instantiates a new [AsciiCodec].
@@ -39,6 +39,8 @@ class AsciiCodec extends _Encoding {
*/
const AsciiCodec({bool allowInvalid: false}) : _allowInvalid = allowInvalid;
+ String get name => "us-ascii";
+
/**
* Decodes the ASCII [bytes] (a list of unsigned 7-bit integers) to the
* corresponding string.
« no previous file with comments | « sdk/lib/_internal/pub/test/test_pub.dart ('k') | sdk/lib/convert/encoding.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698