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

Unified Diff: sdk/lib/convert/latin1.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/convert/encoding.dart ('k') | sdk/lib/convert/utf.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/convert/latin1.dart
diff --git a/sdk/lib/convert/latin1.dart b/sdk/lib/convert/latin1.dart
index 3e9232f942b0a7e41dad871cadc07fbfa2cf8dd4..2fca67cc64f34f01568d3b4e993654d0cc0144ce 100644
--- a/sdk/lib/convert/latin1.dart
+++ b/sdk/lib/convert/latin1.dart
@@ -24,7 +24,7 @@ const int _LATIN1_MASK = 0xFF;
* A [LatinCodec] encodes strings to ISO Latin-1 (aka ISO-8859-1) bytes
* and decodes Latin-1 bytes to strings.
*/
-class Latin1Codec extends _Encoding {
+class Latin1Codec extends Encoding {
final bool _allowInvalid;
/**
* Instantiates a new [Latin1Codec].
@@ -38,6 +38,8 @@ class Latin1Codec extends _Encoding {
*/
const Latin1Codec({bool allowInvalid: false}) : _allowInvalid = allowInvalid;
+ String get name => "iso-8859-1";
+
/**
* Decodes the Latin-1 [bytes] (a list of unsigned 8-bit integers) to the
* corresponding string.
« no previous file with comments | « sdk/lib/convert/encoding.dart ('k') | sdk/lib/convert/utf.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698