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

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

Issue 209443005: Add optimized _OneByteString.toLowerCase. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Optimize toLowerCase. Created 6 years, 9 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
Index: sdk/lib/io/http_date.dart
diff --git a/sdk/lib/io/http_date.dart b/sdk/lib/io/http_date.dart
index 9720426d3cd268930d79a3d04ed5dbb955ec71b8..dc3193c4cabb4ccc62ebeb880f962081fffddc1e 100644
--- a/sdk/lib/io/http_date.dart
+++ b/sdk/lib/io/http_date.dart
@@ -261,7 +261,7 @@ class HttpDate {
while (!isEnd() && isDelimiter(date[position])) position++;
int start = position;
while (!isEnd() && isNonDelimiter(date[position])) position++;
- tokens.add(date.substring(start, position).toLowerCase());
+ tokens.add(_ASCII.toLowerCase(date.substring(start, position)));
while (!isEnd() && isDelimiter(date[position])) position++;
}

Powered by Google App Engine
This is Rietveld 408576698