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

Unified Diff: pkg/fixnum/int32.dart

Issue 10913271: Move parseInt parseDouble to int/double classes as a static method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Make int.parse directly native. Created 8 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 | « lib/uri/uri.dart ('k') | pkg/intl/lib/date_format_helpers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/fixnum/int32.dart
diff --git a/pkg/fixnum/int32.dart b/pkg/fixnum/int32.dart
index d9d8718342f1b9140269306f1f2f738c43a419a2..6638179aa3330f98bf8d183dd91da461128fb008 100644
--- a/pkg/fixnum/int32.dart
+++ b/pkg/fixnum/int32.dart
@@ -79,7 +79,7 @@ class int32 implements intx {
/**
* Parses a decimal [String] and returns an [int32].
*/
- static int32 parseInt(String s) => new int32.fromInt(Math.parseInt(s));
+ static int32 parseInt(String s) => new int32.fromInt(int.parse(s));
/**
* Parses a hexadecimal [String] and returns an [int32].
« no previous file with comments | « lib/uri/uri.dart ('k') | pkg/intl/lib/date_format_helpers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698