| Index: sdk/lib/io/string_stream.dart
|
| diff --git a/sdk/lib/io/string_stream.dart b/sdk/lib/io/string_stream.dart
|
| index cd38e2cb3c14c15102c070c5ea9a7c002a8b23d7..a6893cba45f2c206aca1986823071812900c0e02 100644
|
| --- a/sdk/lib/io/string_stream.dart
|
| +++ b/sdk/lib/io/string_stream.dart
|
| @@ -300,7 +300,7 @@ class _WindowsCodePageDecoder extends _StringDecoderBase {
|
| // Process the next chunk of data.
|
| bool _processNext() {
|
| List<int> bytes = _bufferList.readBytes(_bufferList.length);
|
| - for (var charCode in _decodeBytes(bytes).charCodes) {
|
| + for (var charCode in _decodeBytes(bytes).codeUnits) {
|
| addChar(charCode);
|
| }
|
| return true;
|
| @@ -344,10 +344,10 @@ class _Latin1Encoder implements _StringEncoder {
|
| List<int> encodeString(String string) {
|
| List<int> result = new Uint8List(string.length);
|
| for (int i = 0; i < string.length; i++) {
|
| - int charCode = string.charCodeAt(i);
|
| + int charCode = string.codeUnitAt(i);
|
| if (charCode > 255) {
|
| throw new EncoderException(
|
| - "No ISO_8859_1 encoding for code point $charCode");
|
| + "No ISO_8859_1 encoding for code unit $charCode");
|
| }
|
| result[i] = charCode;
|
| }
|
| @@ -361,10 +361,10 @@ class _AsciiEncoder implements _StringEncoder {
|
| List<int> encodeString(String string) {
|
| List<int> result = new Uint8List(string.length);
|
| for (int i = 0; i < string.length; i++) {
|
| - int charCode = string.charCodeAt(i);
|
| + int charCode = string.codeUnitAt(i);
|
| if (charCode > 127) {
|
| throw new EncoderException(
|
| - "No ASCII encoding for code point $charCode");
|
| + "No ASCII encoding for code unit $charCode");
|
| }
|
| result[i] = charCode;
|
| }
|
|
|