blib/lib/String/Multibyte/Unicode.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 6 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 2 | 2 | 100.0 |
pod | n/a | ||
total | 8 | 8 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package String::Multibyte::Unicode; | ||||||
2 | |||||||
3 | require 5.008; | ||||||
4 | 8 | 8 | 62 | use vars qw($VERSION); | |||
8 | 1 | 15 | |||||
8 | 1087 | ||||||
1 | 30 | ||||||
1 | 3 | ||||||
1 | 143 | ||||||
5 | $VERSION = '1.02'; | ||||||
6 | |||||||
7 | +{ | ||||||
8 | charset => 'Unicode', | ||||||
9 | regexp => qr/./s, | ||||||
10 | nextchar => sub { pack 'U', 1 + unpack('U', $_[0]) }, | ||||||
11 | cmpchar => sub { $_[0] cmp $_[1] }, | ||||||
12 | }; | ||||||
13 | |||||||
14 | __END__ |