Remove HanZi and 7bit-kr, from SADAHIRO Tomoyuki.
[p5sagit/p5-mst-13.2.git] / ext / Encode / lib / Encode / Internal.pm
CommitLineData
df1df145 1package Encode::Internal;
2use strict;
3our $VERSION = do {my @r=(q$Revision: 0.30 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r};
4use base 'Encode::Encoding';
5
6# Dummy package that provides the encode interface but leaves data
7# as UTF-X encoded. It is here so that from_to() works.
8
9__PACKAGE__->Define('Internal');
10
11Encode::define_alias( 'Unicode' => 'Internal' ) if ord('A') == 65;
12
13sub decode
14{
15 my ($obj,$str,$chk) = @_;
16 utf8::upgrade($str);
17 $_[1] = '' if $chk;
18 return $str;
19}
20
21*encode = \&decode;
221;
23__END__