| 1 | package EBook::Ishmael::CharDet::ISO2022JP; | ||
| 2 | 18 | ▶ | use 5.016; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 18 | our $VERSION = '2.03'; | |
| 4 | 18 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 18 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 18 | ▶ | use parent 'EBook::Ishmael::CharDet::ISO2022'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | sub new { | ||
| 10 | |||
| 11 | 23 | ▶ | my ($class) = @_; |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 12 | |||
| 13 | 23 | my $self = bless {}, $class; | |
| 14 | 23 | $self->SUPER::initialize; | |
| 15 | |||
| 16 | $self->{Unique} = [ | ||
| 17 | 23 | '(B', # To ASCII | |
| 18 | '(J', # To JIS X 0201-1976 | ||
| 19 | '$@', # To JIS X 0208-1978 | ||
| 20 | '$B', # To JIX X 0208-1983 | ||
| 21 | ]; | ||
| 22 | |||
| 23 | 23 | return $self; | |
| 24 | |||
| 25 | } | ||
| 26 | |||
| 27 | 19 | ▶ | sub encoding { 'iso-2022-jp' } |
|
Subroutine
encoding: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 28 | |||
| 29 | 18 | 1; | |