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

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

Issue 596763002: Optimize int.parse with a radix. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revert mis-merged patch that got into this CL by mistake. Created 6 years, 3 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/js_lib/core_patch.dart ('k') | tests/corelib/string_fromcharcodes_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 90e6b508b6b14eacbb5985033be2aa3814879207..9813ad0569c4f41ae957ac23930a9f1370fd5eb5 100644
--- a/sdk/lib/core/string.dart
+++ b/sdk/lib/core/string.dart
@@ -106,10 +106,13 @@ abstract class String implements Comparable<String>, Pattern {
* clef.codeUnitAt(0); // 0xD834
* clef.codeUnitAt(1); // 0xDD1E
*
- * If [start] and [end] is provided, only the values of [charCodes]
- * at positions from `start` to, but not including, `end`, are used.
- * The `start` and `end` values must satisfy
- * `0 <= start <= end <= charCodes.length`.
+ * If [start] is provided, the first `start` elements of `charCodes` are
+ * skipped. If `charCodes` has fewer than `start` elements in all, the
+ * result is an empty string. The `start` value must be non-negative.
+ *
+ * If [end] is provided, any elements of `charCodes` after the `end`'th are
+ * ignored. If `charCodes` has fewer than `end` elements, the `end` parameter
+ * has no effect.
*/
external factory String.fromCharCodes(Iterable<int> charCodes,
[int start = 0, int end]);
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/core_patch.dart ('k') | tests/corelib/string_fromcharcodes_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698