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

Side by Side Diff: runtime/lib/string_patch.dart

Issue 13774006: Moving ListBase, FixedLengthListMixin and UmodifiableListMixin to collection. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 patch class String { 5 patch class String {
6 /* patch */ factory String.fromCharCodes(Iterable<int> charCodes) { 6 /* patch */ factory String.fromCharCodes(Iterable<int> charCodes) {
7 return _StringBase.createFromCharCodes(charCodes); 7 return _StringBase.createFromCharCodes(charCodes);
8 } 8 }
9 } 9 }
10 10
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 stringsArray[i++] = string; 460 stringsArray[i++] = string;
461 } 461 }
462 } 462 }
463 return _concatAll(stringsArray); 463 return _concatAll(stringsArray);
464 } 464 }
465 465
466 static String _concatAll(List<String> strings) 466 static String _concatAll(List<String> strings)
467 native "Strings_concatAll"; 467 native "Strings_concatAll";
468 } 468 }
469 469
470
471 class _OneByteString extends _StringBase implements String { 470 class _OneByteString extends _StringBase implements String {
472 factory _OneByteString._uninstantiable() { 471 factory _OneByteString._uninstantiable() {
473 throw new UnsupportedError( 472 throw new UnsupportedError(
474 "_OneByteString can only be allocated by the VM"); 473 "_OneByteString can only be allocated by the VM");
475 } 474 }
476 475
477 int get hashCode native "String_getHashCode"; 476 int get hashCode native "String_getHashCode";
478 477
479 // Checks for one-byte whitespaces only. 478 // Checks for one-byte whitespaces only.
480 // TODO(srdjan): Investigate if 0x85 (NEL) and 0xA0 (NBSP) are valid 479 // TODO(srdjan): Investigate if 0x85 (NEL) and 0xA0 (NBSP) are valid
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 for (int g in groups) { 605 for (int g in groups) {
607 result.add(group(g)); 606 result.add(group(g));
608 } 607 }
609 return result; 608 return result;
610 } 609 }
611 610
612 final int start; 611 final int start;
613 final String str; 612 final String str;
614 final String pattern; 613 final String pattern;
615 } 614 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698