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

Unified Diff: lib/uri/uri.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/encode_decode.dart ('k') | pkg/fixnum/int32.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/uri/uri.dart
diff --git a/lib/uri/uri.dart b/lib/uri/uri.dart
index c29ebe25838a249eabc898656498d4499620be5c..d087320b18d289e8feb4fa81863a46024a4aeee1 100644
--- a/lib/uri/uri.dart
+++ b/lib/uri/uri.dart
@@ -49,7 +49,7 @@ class Uri {
static int _parseIntOrZero(String val) {
if (val !== null && val != '') {
- return parseInt(val);
+ return int.parse(val);
} else {
return 0;
}
« no previous file with comments | « lib/uri/encode_decode.dart ('k') | pkg/fixnum/int32.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698