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

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

Issue 85633003: Add num.parse. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file for IE. Created 7 years, 1 month 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 | « runtime/lib/double_patch.dart ('k') | sdk/lib/core/num.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/int.dart
diff --git a/sdk/lib/core/int.dart b/sdk/lib/core/int.dart
index c06a3ee0f8d9fb40438055905a7db2cf1fa3bada..6ca271829d00c7329a918600f6acf9f92951e439 100644
--- a/sdk/lib/core/int.dart
+++ b/sdk/lib/core/int.dart
@@ -246,8 +246,9 @@ abstract class int extends num {
* first the decimal digits 0..9, and then the letters 'a'..'z'.
* Accepts capital letters as well.
*
- * If no [radix] is given then it defaults to 16 if the string starts
- * with "0x", "-0x" or "+0x" and 10 otherwise.
+ * If no [radix] is given then it defaults to 10, unless the string starts
+ * with "0x", "-0x" or "+0x", in which case the radix is set to 16 and the
+ * "0x" is ignored.
*
* The [source] must be a non-empty sequence of base-[radix] digits,
* optionally prefixed with a minus or plus sign ('-' or '+').
« no previous file with comments | « runtime/lib/double_patch.dart ('k') | sdk/lib/core/num.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698