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

Side by Side Diff: sdk/lib/codec/encoding.dart

Issue 17580014: dart:convert library. Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update Created 7 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 | Annotate | Revision Log
« no previous file with comments | « sdk/lib/codec/codec_sources.gypi ('k') | sdk/lib/codec/json.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 part of dart.codec;
6
7 abstract class Encoding {
8 static const UTF8 = const Utf8Codec();
9 static const ASCII = const AsciiCodec();
10 static const ISO_8859_1 = const Iso8859_1Codec();
11 }
12
13 class Utf8Codec extends Codec<String, List<int>> {
14 const Utf8Codec();
15
16 Converter get encoder => new Utf8Encoder();
17 Converter get decoder => new Utf8Decoder();
18 }
19
20 class AsciiCodec extends Codec<String, List<int>> {
21 const AsciiCodec();
22
23 Converter get encoder => new AsciiEncoder();
24 Converter get decoder => new AsciiDecoder();
25 }
26
27 class Iso8859_1Codec extends Codec<String, List<int>> {
28 const Iso8859_1Codec();
29
30 Converter get encoder => new Iso8859_1Encoder();
31 Converter get decoder => new Iso8859_1Decoder();
32 }
OLDNEW
« no previous file with comments | « sdk/lib/codec/codec_sources.gypi ('k') | sdk/lib/codec/json.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698