2 euc_jp_decoder_functions!({
3 let trail_minus_offset = byte.wrapping_sub(0xA1);
4 // Fast-track Hiragana (60% according to Lunde)
5 // and Katakana (10% according to Lunde).
6 if jis0208_lead_minus_offset == 0x03 && trail_minus_offset < 0x53 {
8 handle.write_upper_bmp(0x3041 + trail_minus_offset as u16)
9 } else if jis0208_lead_minus_offset == 0x04 && trail_minus_offset < 0x56 {
11 handle.write_upper_bmp(0x30A1 + trail_minus_offset as u16)
12 } else if trail_minus_offset > (0xFE - 0xA1) {
15 DecoderResult::Malformed(1, 0),
16 unread_handle_trail.unread(),
21 DecoderResult::Malformed(2, 0),
22 unread_handle_trail.consumed(),