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

Unified Diff: frog/lib/string_base.dart

Issue 10548047: Remove frog from the repository. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move test and update apidoc.gyp. Created 8 years, 6 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 | « frog/lib/num.dart ('k') | frog/lib/string_buffer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/lib/string_base.dart
diff --git a/frog/lib/string_base.dart b/frog/lib/string_base.dart
deleted file mode 100644
index 3903a46aba3f0b38a365b28942865dd375a5b43c..0000000000000000000000000000000000000000
--- a/frog/lib/string_base.dart
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// 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.
-
-class StringBase {
- // TODO(jmesserly): this array copy is really unfortunate
- // TODO(jmesserly): check the performance of String.fromCharCode.apply
- // TODO(jmesserly): fix the generated JS name of factory ctors,
- // they shouldn't be duplicating the name.
- static String createFromCharCodes(List<int> charCodes) native @'''
-if (Object.getPrototypeOf(charCodes) !== Array.prototype) {
- charCodes = new ListFactory.ListFactory$from$factory(charCodes);
-}
-return String.fromCharCode.apply(null, charCodes);
-''' {
- // we may need to iterate over charCodes
- var i = charCodes.iterator(); i.next(); i.hasNext();
- new ListFactory.from(charCodes); // ensure List.from is generated
- }
-
- static String join(List<String> strings, String separator) {
- if (strings.length == 0) return '';
- String s = strings[0];
- for (int i = 1; i < strings.length; i++) {
- s = s + separator + strings[i];
- }
- return s;
- }
-
- static String concatAll(List<String> strings) => join(strings, "");
-}
« no previous file with comments | « frog/lib/num.dart ('k') | frog/lib/string_buffer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698