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

Unified Diff: pkg/intl/lib/date_format_helpers.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 | « pkg/fixnum/int32.dart ('k') | pkg/unittest/html_layout_config.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/lib/date_format_helpers.dart
diff --git a/pkg/intl/lib/date_format_helpers.dart b/pkg/intl/lib/date_format_helpers.dart
index 8a9df48b89eb47ab2548cb1e21712af785a2a406..7fe637ab37ee3922056089186220b2c46cf03b6a 100644
--- a/pkg/intl/lib/date_format_helpers.dart
+++ b/pkg/intl/lib/date_format_helpers.dart
@@ -125,6 +125,6 @@ class _Stream {
var string = digitMatcher.stringMatch(rest());
if (string == null || string.isEmpty()) return null;
read(string.length);
- return parseInt(string);
+ return int.parse(string);
}
}
« no previous file with comments | « pkg/fixnum/int32.dart ('k') | pkg/unittest/html_layout_config.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698