2 # $Id: CJKConstants.pm,v 1.1 2003/02/06 01:52:11 dankogai Exp dankogai $
5 package Encode::CJKConstants;
9 our $RCSID = q$Id: CJKConstants.pm,v 1.1 2003/02/06 01:52:11 dankogai Exp dankogai $;
10 our $VERSION = do { my @r = (q$Revision: 1.1 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
15 our @ISA = qw(Exporter);
17 our @EXPORT_OK = qw(%CHARCODE %ESC %RE);
18 our %EXPORT_TAGS = ( 'all' => [ @EXPORT_OK, @EXPORT ] );
27 UNDEF_EUC => "\xa2\xae", # ¢® in EUC
28 UNDEF_SJIS => "\x81\xac", # ¢® in SJIS
29 UNDEF_JIS => "\xa2\xf7", # ¢÷ -- used in unicode
30 UNDEF_UNICODE => "\x20\x20", # ¢÷ -- used in unicode
44 ASCII => '[\x00-\x7f]',
45 BIN => '[\x00-\x06\x7f\xff]',
46 EUC_0212 => '\x8f[\xa1-\xfe][\xa1-\xfe]',
47 EUC_C => '[\xa1-\xfe][\xa1-\xfe]',
48 EUC_KANA => '\x8e[\xa1-\xdf]',
49 JIS_0208 => "$_0208{1978}|$_0208{1983}|$_0208{1990}",
50 JIS_0212 => "\e" . '\$\(D',
51 ISO_ASC => "\e" . '\([BJ]',
52 JIS_KANA => "\e" . '\(I',
53 '2022_KR' => "\e" . '\$\)C',
54 SJIS_C => '[\x81-\x9f\xe0-\xfc][\x40-\x7e\x80-\xfc]',
55 SJIS_KANA => '[\xa1-\xdf]',
56 UTF8 => '[\xc0-\xdf][\x80-\xbf]|[\xe0-\xef][\x80-\xbf][\x80-\xbf]'
63 Encode::CJKConstants.pm -- Internally used by Encode::??::ISO_2022_*