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

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

Issue 12282038: Remove deprecated string features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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_headers.dart
diff --git a/sdk/lib/io/http_headers.dart b/sdk/lib/io/http_headers.dart
index 928334db6c7177c18fd4e2082395767560dacbbc..032c7477a8e95b4cdfdb6c1dd6220ab87f01acf3 100644
--- a/sdk/lib/io/http_headers.dart
+++ b/sdk/lib/io/http_headers.dart
@@ -324,7 +324,7 @@ class _HttpHeaders implements HttpHeaders {
_headers.forEach((String name, List<String> values) {
bool fold = _foldHeader(name);
List<int> nameData;
- nameData = name.charCodes;
+ nameData = name.codeUnits;
int nameDataLen = nameData.length;
if (nameDataLen + 2 > bufferSize - bufferPos) writeBuffer();
buffer.setRange(bufferPos, nameDataLen, nameData);
@@ -332,7 +332,7 @@ class _HttpHeaders implements HttpHeaders {
buffer[bufferPos++] = _CharCode.COLON;
buffer[bufferPos++] = _CharCode.SP;
for (int i = 0; i < values.length; i++) {
- List<int> data = values[i].charCodes;
+ List<int> data = values[i].codeUnits;
int dataLen = data.length;
// Worst case here is writing the name, value and 6 additional bytes.
if (nameDataLen + dataLen + 6 > bufferSize - bufferPos) writeBuffer();

Powered by Google App Engine
This is Rietveld 408576698