Changeset 10695 for lang/perl/HTML-ReplacePictogramMobileJp/trunk
- Timestamp:
- 04/29/08 00:11:30 (5 years ago)
- Location:
- lang/perl/HTML-ReplacePictogramMobileJp/trunk
- Files:
-
- 2 modified
-
lib/HTML/ReplacePictogramMobileJp/AirHPhone.pm (modified) (2 diffs)
-
t/01_simple.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/HTML-ReplacePictogramMobileJp/trunk/lib/HTML/ReplacePictogramMobileJp/AirHPhone.pm
r4899 r10695 3 3 use warnings; 4 4 use HTML::ReplacePictogramMobileJp::Base; 5 use Encode; 6 use Encode::JP::Mobile; 5 7 6 8 filter utf8 => 'utf-8', sub { … … 10 12 filter sjis => 'x-sjis-airh', sub { 11 13 unicode_property 'I'; 12 unicode_hex_cref 'I'; 14 15 # sjis hex cref 16 s/&#x([0-9A-F]{4});/ 17 callback(ord(decode 'x-sjis-docomo', pack 'H*', sprintf '%X', hex $1), 'I'); 18 /gei; 13 19 }; 14 20 -
lang/perl/HTML-ReplacePictogramMobileJp/trunk/t/01_simple.t
r10678 r10695 25 25 is _x('V', 'utf8', ""), "<U+E537> V", 'softbank-utf8-hex-cref'; 26 26 27 is _x('H', 'utf8', ""), "<U+E757> I", 'airh sjishex cref';28 is _x('H', 'sjis', "&#x E757;"), "<U+E757> I", 'airh sjis hex cref';27 is _x('H', 'utf8', ""), "<U+E757> I", 'airh utf8 hex cref'; 28 is _x('H', 'sjis', ""), "<U+E63F> I", 'airh sjis hex cref'; 29 29 is _x('H', 'sjis', "\xf9\xfc"), "<U+E757> I", 'airh sjis binary'; 30 30
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)