- Timestamp:
- 12/25/07 14:54:00 (5 years ago)
- Location:
- lang/perl/autobox-Encode/trunk
- Files:
-
- 3 modified
-
. (modified) (1 prop)
-
lib/autobox/Encode.pm (modified) (1 diff)
-
t/01_simple.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/autobox-Encode/trunk
-
Property
svn:ignore set
to
META.yml
Makefile
blib
inc
pm_to_blib
-
Property
svn:ignore set
to
-
lang/perl/autobox-Encode/trunk/lib/autobox/Encode.pm
r3558 r3559 10 10 sub encode { Encode::encode($_[1], $_[0], $_[2]) } 11 11 sub decode { Encode::decode($_[1], $_[0], $_[2]) } 12 sub is_utf8 { Encode::is_utf8($_[0]) } 12 13 13 14 1; -
lang/perl/autobox-Encode/trunk/t/01_simple.t
r3558 r3559 4 4 use autobox::Encode; 5 5 use Encode (); 6 use Test::More tests => 4;6 use Test::More tests => 6; 7 7 8 8 ok Encode::is_utf8('あいうえお'->decode('utf-8')); … … 10 10 is uc(unpack "H*", 'あいうえお'->decode('utf-8')->encode('euc-jp')), "A4A2A4A4A4A6A4A8A4AA"; 11 11 is 'あいうえお'->decode('utf-8')->encode('ascii', Encode::FB_PERLQQ), '\x{3042}\x{3044}\x{3046}\x{3048}\x{304a}'; 12 ok 'あいうえお'->decode('utf-8')->is_utf8; 13 ok not 'あいうえお'->is_utf8; 12 14
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)