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

Unified Diff: lib/utf/utf32.dart

Issue 9462001: Unify most of our utf8 implementations. This takes the implementation (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « lib/utf/utf16.dart ('k') | lib/utf/utf8.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/utf/utf32.dart
===================================================================
--- lib/utf/utf32.dart (revision 4552)
+++ lib/utf/utf32.dart (working copy)
@@ -2,10 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#library("utf32");
-#import("unicode_core.dart");
-#import("unicode.dart");
-
/**
* Decodes the UTF-32 bytes as an iterable. Thus, the consumer can only convert
* as much of the input as needed. Determines the byte order from the BOM,
@@ -193,12 +189,12 @@
/**
* Abstrace parent class converts encoded bytes to codepoints.
*/
-class Utf32BytesDecoder implements ListRangeIterator<int> {
- final ListRangeIterator<int> utf32EncodedBytesIterator;
+class Utf32BytesDecoder implements _ListRangeIterator<int> {
+ final _ListRangeIterator<int> utf32EncodedBytesIterator;
final int replacementCodepoint;
Utf32BytesDecoder._fromListRangeIterator(
- ListRangeIterator<int> this.utf32EncodedBytesIterator,
+ _ListRangeIterator<int> this.utf32EncodedBytesIterator,
int this.replacementCodepoint);
factory Utf32BytesDecoder(List<int> utf32EncodedBytes, [
@@ -275,7 +271,7 @@
Utf32beBytesDecoder(List<int> utf32EncodedBytes, [int offset = 0,
int length, bool stripBom = true,
int replacementCodepoint = UNICODE_REPLACEMENT_CHARACTER_CODEPOINT]) :
- super._fromListRangeIterator((new ListRange(utf32EncodedBytes, offset,
+ super._fromListRangeIterator((new _ListRange(utf32EncodedBytes, offset,
length)).iterator(), replacementCodepoint) {
if (stripBom && hasUtf32beBom(utf32EncodedBytes, offset, length)) {
skip();
@@ -299,7 +295,7 @@
Utf32leBytesDecoder(List<int> utf32EncodedBytes, [int offset = 0,
int length, bool stripBom = true,
int replacementCodepoint = UNICODE_REPLACEMENT_CHARACTER_CODEPOINT]) :
- super._fromListRangeIterator((new ListRange(utf32EncodedBytes, offset,
+ super._fromListRangeIterator((new _ListRange(utf32EncodedBytes, offset,
length)).iterator(), replacementCodepoint) {
if (stripBom && hasUtf32leBom(utf32EncodedBytes, offset, length)) {
skip();
« no previous file with comments | « lib/utf/utf16.dart ('k') | lib/utf/utf8.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698