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

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

Issue 2637103002: Update `String.replaceFirstMapped`. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | 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 78818b7d7555f94f5f8e135a2ce48e77e64dd453..38df590e9d7da5cd5a86c3699ba589f429a406ff 100644
--- a/sdk/lib/core/string.dart
+++ b/sdk/lib/core/string.dart
@@ -428,6 +428,9 @@ abstract class String implements Comparable<String>, Pattern {
* except that the first match of [pattern], starting from [startIndex],
* is replaced by the result of calling [replace] with the match object.
*
+ * The optional [startIndex] is by default set to 0. If provided, it must be
+ * an integer in the range `[0 .. len]`, where `len` is this string's length.
Lasse Reichstein Nielsen 2017/01/17 15:59:48 Maybe just: in the range `0 .. len` (both inclusi
+ *
* If the value returned by calling `replace` is not a [String], it
* is converted to a `String` using its `toString` method, which must
* then return a string.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698