CP949Codec class

codec for cp949 encoding/decoding

Inheritance

Constructors

CP949Codec({bool allowInvalid = false})
Instantiates a new CP949Codec. If allowInvalid is true, the decode method and the converter returned by decoder will default to allowing invalid values. Invalid values are decoded into the Unicode Replacement character (U+FFFD). Calls to the decode method can override this default.
const

Properties

decoder CP949Decoder
Returns the decoder of this, converting from List
no setteroverride
encoder CP949Encoder
Returns the encoder from String to List<int>.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
inverted Codec<List<int>, String>
Inverts this.
no setterinherited
name String
cp949 is not official IANA charset. cp949 is just extended version of euc-kr. euc-kr is official charset. So, I write down euc-kr here. but, this class has full encoding/decoding support for cp949 charset.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(List<int> bytes, {bool? allowInvalid}) String
Decodes encoded data.
override
decodeStream(Stream<List<int>> byteStream) Future<String>
inherited
decodeString(String brokenString) String
CP949 (EUC-KR) byte 배열을 유니코드 기반으로 잘못 해석하여 깨져 보이는 String 을 받아 변환해 제대로 리턴합니다. 다트에서 읽을 수 없는 cp949로 인코딩된 깨진 문자를 유니코드로 복원합니다.
encode(String source) Uint8List
cp949 charset needs only 2byte to represent a letter,
override
encodeToString(String codeUnits) String
CP949 (EUC-KR) byte 배열을 유니코드 기반으로 잘못 해석하여 깨져 보이는 String 을 리턴합니다. 이 리턴값은 다트에서는 읽을 수 없습니다.
fuse<R>(Codec<List<int>, R> other) Codec<String, R>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited