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

Unified Diff: pkg/utf/lib/src/utf/utf8.dart

Issue 418433003: pkg/utf: fixed layout, added todos, updated docs and homepage pubspec links (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/utf/lib/src/utf/utf32.dart ('k') | pkg/utf/lib/src/utf/utf_stream.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/utf/lib/src/utf/utf8.dart
diff --git a/pkg/utf/lib/utf8.dart b/pkg/utf/lib/src/utf/utf8.dart
similarity index 97%
rename from pkg/utf/lib/utf8.dart
rename to pkg/utf/lib/src/utf/utf8.dart
index 36288d9c455f61ba200639d0290b73b98234b8a9..ff1b1ed81e6079b529d85649071ffa7c0a838541 100644
--- a/pkg/utf/lib/utf8.dart
+++ b/pkg/utf/lib/src/utf/utf8.dart
@@ -69,7 +69,7 @@ int _addToEncoding(int offset, int bytes, int value, List<int> buffer) {
*/
List<int> codepointsToUtf8(
List<int> codepoints, [int offset = 0, int length]) {
- _ListRange source = new _ListRange(codepoints, offset, length);
+ ListRange source = new ListRange(codepoints, offset, length);
int encodedLength = 0;
for (int value in source) {
@@ -153,7 +153,8 @@ class IterableUtf8Decoder extends IterableBase<int> {
* from this method can be used as an Iterable (e.g. in a for-loop).
*/
class Utf8Decoder implements Iterator<int> {
- final _ListRangeIterator utf8EncodedBytesIterator;
+ // TODO(kevmoo): should this field be private?
+ final ListRangeIterator utf8EncodedBytesIterator;
final int replacementCodepoint;
int _current = null;
@@ -161,10 +162,10 @@ class Utf8Decoder implements Iterator<int> {
this.replacementCodepoint =
UNICODE_REPLACEMENT_CHARACTER_CODEPOINT]) :
utf8EncodedBytesIterator =
- (new _ListRange(utf8EncodedBytes, offset, length)).iterator;
+ (new ListRange(utf8EncodedBytes, offset, length)).iterator;
- Utf8Decoder._fromListRangeIterator(_ListRange source, [
+ Utf8Decoder._fromListRangeIterator(ListRange source, [
this.replacementCodepoint =
UNICODE_REPLACEMENT_CHARACTER_CODEPOINT]) :
utf8EncodedBytesIterator = source.iterator;
« no previous file with comments | « pkg/utf/lib/src/utf/utf32.dart ('k') | pkg/utf/lib/src/utf/utf_stream.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698