Struct encoding::codec::tradchinese::BigFive2003Encoding [] [src]

pub struct BigFive2003Encoding;

Big5-2003 with common extensions. (XXX with asymmetric HKSCS-2008 support)

This is a traditional Chinese encoding spanning the region [81-FE] [40-7E A1-FE]. Originally a proprietary encoding by the consortium of five companies (hence the name), the Republic of China government standardized Big5-2003 in an appendix of CNS 11643 so that CNS 11643 plane 1 and plane 2 have an almost identical set of characters as Big5 (but with a different mapping). The Hong Kong government has an official extension to Big5 named Hong Kong Supplementary Character Set (HKSCS).

This particular implementation of Big5 includes the widespread ETEN and HKSCS extensions, but excludes less common extensions such as Big5+, Big-5E and Unicode-at-on.

Trait Implementations

impl Encoding for BigFive2003Encoding

fn name(&self) -> &'static str

fn whatwg_name(&self) -> Option<&'static str>

fn raw_encoder(&self) -> Box<RawEncoder>

fn raw_decoder(&self) -> Box<RawDecoder>

fn encode(&self, input: &str, trap: EncoderTrap) -> Result<Vec<u8>, Cow<'static, str>>

fn encode_to(&self, input: &str, trap: EncoderTrap, ret: &mut ByteWriter) -> Result<(), Cow<'static, str>>

fn decode(&self, input: &[u8], trap: DecoderTrap) -> Result<String, Cow<'static, str>>

fn decode_to(&self, input: &[u8], trap: DecoderTrap, ret: &mut StringWriter) -> Result<(), Cow<'static, str>>

Derived Implementations

impl Copy for BigFive2003Encoding

impl Clone for BigFive2003Encoding

fn clone(&self) -> BigFive2003Encoding

fn clone_from(&mut self, source: &Self)