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

Unified Diff: sdk/lib/io/http_utils.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/io/http_parser.dart ('k') | sdk/lib/io/io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_utils.dart
diff --git a/sdk/lib/io/http_utils.dart b/sdk/lib/io/http_utils.dart
index 9e236138c93ae4538e6ab0bcb4dd4d0d56fb4092..927691c825c0d783e09b4a990d3b440463228692 100644
--- a/sdk/lib/io/http_utils.dart
+++ b/sdk/lib/io/http_utils.dart
@@ -207,7 +207,7 @@ class _HttpUtils {
String tmp = date.substring(index, pos);
index = pos + separator.length;
try {
- int value = parseInt(tmp);
+ int value = int.parse(tmp);
return value;
} on FormatException catch (e) {
throw new HttpException("Invalid HTTP date $date");
@@ -300,7 +300,7 @@ class _HttpUtils {
int toInt(String s) {
int index = 0;
for (; index < s.length && isDigit(s[index]); index++);
- return parseInt(s.substring(0, index));
+ return int.parse(s.substring(0, index));
}
var tokens = [];
« no previous file with comments | « sdk/lib/io/http_parser.dart ('k') | sdk/lib/io/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698