OLD | NEW |
1 var convert; | 1 var convert; |
2 (function(exports) { | 2 (function(exports) { |
3 'use strict'; | 3 'use strict'; |
4 let ASCII = dart.const(new AsciiCodec()); | 4 let ASCII = dart.const(new AsciiCodec()); |
5 let _ASCII_MASK = 127; | 5 let _ASCII_MASK = 127; |
6 let _allowInvalid = Symbol('_allowInvalid'); | 6 let _allowInvalid = Symbol('_allowInvalid'); |
7 let Codec$ = dart.generic(function(S, T) { | 7 let Codec$ = dart.generic(function(S, T) { |
8 class Codec extends core.Object { | 8 class Codec extends core.Object { |
9 Codec() { | 9 Codec() { |
10 } | 10 } |
(...skipping 1557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1568 if (isLast) | 1568 if (isLast) |
1569 this.close(); | 1569 this.close(); |
1570 } | 1570 } |
1571 add(str) { | 1571 add(str) { |
1572 return this[_stringSink].write(str); | 1572 return this[_stringSink].write(str); |
1573 } | 1573 } |
1574 asUtf8Sink(allowMalformed) { | 1574 asUtf8Sink(allowMalformed) { |
1575 return new _Utf8StringSinkAdapter(this, this[_stringSink], allowMalformed)
; | 1575 return new _Utf8StringSinkAdapter(this, this[_stringSink], allowMalformed)
; |
1576 } | 1576 } |
1577 asStringSink() { | 1577 asStringSink() { |
1578 return new ClosableStringSink.fromStringSink(this[_stringSink], dart.bind(
this, 'close')); | 1578 return new ClosableStringSink.fromStringSink(this[_stringSink], this.close
.bind(this)); |
1579 } | 1579 } |
1580 } | 1580 } |
1581 class _StringCallbackSink extends _StringSinkConversionSink { | 1581 class _StringCallbackSink extends _StringSinkConversionSink { |
1582 _StringCallbackSink(callback) { | 1582 _StringCallbackSink(callback) { |
1583 this[_callback] = callback; | 1583 this[_callback] = callback; |
1584 super._StringSinkConversionSink(new core.StringBuffer()); | 1584 super._StringSinkConversionSink(new core.StringBuffer()); |
1585 } | 1585 } |
1586 close() { | 1586 close() { |
1587 let buffer = dart.as(this[_stringSink], core.StringBuffer); | 1587 let buffer = dart.as(this[_stringSink], core.StringBuffer); |
1588 let accumulated = dart.toString(buffer); | 1588 let accumulated = dart.toString(buffer); |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2417 exports.LineSplitter = LineSplitter; | 2417 exports.LineSplitter = LineSplitter; |
2418 exports.StringConversionSink = StringConversionSink; | 2418 exports.StringConversionSink = StringConversionSink; |
2419 exports.ClosableStringSink = ClosableStringSink; | 2419 exports.ClosableStringSink = ClosableStringSink; |
2420 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN
E; | 2420 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN
E; |
2421 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE; | 2421 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE; |
2422 exports.UTF8 = UTF8; | 2422 exports.UTF8 = UTF8; |
2423 exports.Utf8Codec = Utf8Codec; | 2423 exports.Utf8Codec = Utf8Codec; |
2424 exports.Utf8Encoder = Utf8Encoder; | 2424 exports.Utf8Encoder = Utf8Encoder; |
2425 exports.Utf8Decoder = Utf8Decoder; | 2425 exports.Utf8Decoder = Utf8Decoder; |
2426 })(convert || (convert = {})); | 2426 })(convert || (convert = {})); |
OLD | NEW |