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

Side by Side Diff: sdk/lib/core/iterable.dart

Issue 12094056: Runes, a bi-directional code-point iterator/iterable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « no previous file | sdk/lib/core/string.dart » ('j') | sdk/lib/core/string.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.core; 5 part of dart.core;
6 6
7 /** 7 /**
8 * The [Iterable] interface allows to get an [Iterator] out of an 8 * The [Iterable] interface allows to get an [Iterator] out of an
9 * [Iterable] object. 9 * [Iterable] object.
10 * 10 *
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 _index++; 406 _index++;
407 return true; 407 return true;
408 } else { 408 } else {
409 _current = null; 409 _current = null;
410 return false; 410 return false;
411 } 411 }
412 } 412 }
413 413
414 E get current => _current; 414 E get current => _current;
415 } 415 }
416
417 /**
418 * An [Iterator] that allows moving backwards as well as forwards.
419 */
420 abstract class BiDirectionalIterator<T> extends Iterator<T> {
421 /**
422 * Move back to the previous element.
423 *
424 * Returns true and updates [current] if successful. Returns false
425 * and sets [current] to null if there is no previous element.
426 */
427 bool movePrevious();
428 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/core/string.dart » ('j') | sdk/lib/core/string.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698