ReplacePictogramMobileJp/AirHPhone.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 100% 29 / 29 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« ReplacePictogramMobileJp.pm ↑ Summary ReplacePictogramMobileJp/DoCoMo.pm »
1 package HTML::ReplacePictogramMobileJp::AirHPhone;
2 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use HTML::ReplacePictogramMobileJp::Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use Encode;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 ▶use Encode::JP::Mobile;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶filter utf8 => 'utf-8', sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
9 1 unicode_hex_cref 'I';
10 3 };
11  
12 2 ▶filter sjis => 'x-sjis-airh', sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
13 2 unicode_property 'I';
14  
15 # sjis hex cref
16 2 s/&#x([0-9A-F]{4});/
17 1 callback(ord(decode 'x-sjis-docomo', pack 'H*', sprintf '%X', hex $1), 'I');
18 /gei;
19 3 };
20  
21 3 1;
« ReplacePictogramMobileJp.pm ↑ Summary ReplacePictogramMobileJp/DoCoMo.pm »