Changeset 10024
- Timestamp:
- 04/21/08 00:09:25 (5 years ago)
- Location:
- lang/perl/HTML-ReplacePictogramMobileJp/trunk
- Files:
-
- 2 modified
-
lib/HTML/ReplacePictogramMobileJp/DoCoMo.pm (modified) (2 diffs)
-
t/01_simple.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/HTML-ReplacePictogramMobileJp/trunk/lib/HTML/ReplacePictogramMobileJp/DoCoMo.pm
r4899 r10024 3 3 use warnings; 4 4 use HTML::ReplacePictogramMobileJp::Base; 5 use Encode; 5 6 6 7 filter utf8 => 'x-utf8-docomo', sub { … … 12 13 unicode_property 'I'; 13 14 unicode_hex_cref 'I'; 15 16 s/&#([0-9]+);/ 17 my $original = $1; 18 my $x = unpack 'U*', decode 'x-sjis-imode', pack 'H*', sprintf '%x', $original; 19 callback($x, 'I') 20 /gei; 14 21 }; 15 22 -
lang/perl/HTML-ReplacePictogramMobileJp/trunk/t/01_simple.t
r4996 r10024 1 1 use strict; 2 2 use warnings; 3 use Test::More tests => 1 6;3 use Test::More tests => 17; 4 4 use HTML::ReplacePictogramMobileJp; 5 5 use Encode; … … 9 9 is _x('I', 'sjis', encode('x-sjis-docomo', "\x{E757}")), "<U+E757> I"; 10 10 is _x('I', 'sjis', ""), "<U+E757> I"; 11 is _x('I', 'sjis', ""), "<U+E63E> I"; 11 12 12 13 is _x('E', 'utf8', encode('x-utf8-ezweb', "\x{ED80}")), "<U+ED80> E";
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)