Struct encoding::codec::japanese::EUCJPEncoding [] [src]

pub struct EUCJPEncoding;

EUC-JP. (XXX with asymmetric JIS X 0212 support)

This is a Japanese encoding created from three JIS character sets:

EUC-JP contains the lower half of JIS X 0201 in G0 ([21-7E]), JIS X 0208 in G1 ([A1-FE] [A1-FE]), the upper half of JIS X 0212 in G2 (8E [A1-DF]), and JIS X 0212 in G3 (8F [A1-FE] [A1-FE]).

Trait Implementations

impl Encoding for EUCJPEncoding

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 EUCJPEncoding

impl Clone for EUCJPEncoding

fn clone(&self) -> EUCJPEncoding

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