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

Unified Diff: sdk/lib/core/string.dart

Issue 13874008: Remove String.slice. Too much overlap with String.substring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add VM changes. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/lib/js_string.dart ('k') | tests/corelib/string_slice_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/string.dart
diff --git a/sdk/lib/core/string.dart b/sdk/lib/core/string.dart
index 36a2e60fdc9a197824cb763514f3f5ed72c90134..4f8080726d98ef183c60a8f05e973070d78c1c04 100644
--- a/sdk/lib/core/string.dart
+++ b/sdk/lib/core/string.dart
@@ -139,22 +139,6 @@ abstract class String implements Comparable<String>, Pattern {
String operator +(String other);
/**
- * Returns a slice of this string from [startIndex] to [endIndex].
- *
- * If [startIndex] is omitted, it defaults to the start of the string.
- *
- * If [endIndex] is omitted, it defaults to the end of the string.
- *
- * If either index is negative, it's taken as a negative index from the
- * end of the string. Their effective value is computed by adding the
- * negative value to the [length] of the string.
- *
- * The effective indices, after must be non-negative, no greater than the
- * length of the string, and [endIndex] must not be less than [startIndex].
- */
- String slice([int startIndex, int endIndex]);
-
- /**
* Returns a substring of this string in the given range.
* [startIndex] is inclusive and [endIndex] is exclusive.
*/
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/lib/js_string.dart ('k') | tests/corelib/string_slice_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698