line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package FormValidator::Simple::Struct::CharTypes; |
2
|
10
|
|
|
10
|
|
227
|
use 5.008_001; |
|
10
|
|
|
|
|
32
|
|
3
|
10
|
|
|
10
|
|
51
|
use strict; |
|
10
|
|
|
|
|
18
|
|
|
10
|
|
|
|
|
241
|
|
4
|
10
|
|
|
10
|
|
62
|
use warnings; |
|
10
|
|
|
|
|
17
|
|
|
10
|
|
|
|
|
310
|
|
5
|
10
|
|
|
10
|
|
47
|
use utf8; |
|
10
|
|
|
|
|
17
|
|
|
10
|
|
|
|
|
89
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.16'; |
8
|
|
|
|
|
|
|
|
9
|
10
|
|
|
10
|
|
473
|
use base 'Exporter'; |
|
10
|
|
|
|
|
15
|
|
|
10
|
|
|
|
|
2667
|
|
10
|
|
|
|
|
|
|
our @EXPORT= qw/CHARTYPE::HIRAGANA CHARTYPE::KATAKANA CHARTYPE::KANJI CHARTYPE::GREEK CHARTYPE::ASCII CHARTYPE::CYRILLIC CHARTYPE::MATH CHARTYPE::NUMBER CHARTYPE::ALPHABET CHARTYPE::PUNCTUATION/; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub CHARTYPE::HIRAGANA{ |
13
|
18
|
|
|
18
|
|
65
|
'^\x{3040}-\x{309F}'; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub CHARTYPE::KATAKANA{ |
17
|
6
|
|
|
6
|
|
23
|
'^\x{30A0}-\x{30FF}\x{FF00}-\x{FFEF}'; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub CHARTYPE::KANJI{ |
21
|
1
|
|
|
1
|
|
71
|
'^\x{4E00}-\x{9FFF}'; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub CHARTYPE::ASCII{ |
25
|
1
|
|
|
1
|
|
20
|
'^\x{0000}-\x{007F}'; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub CHARTYPE::GREEK{ |
29
|
2
|
|
|
2
|
|
11
|
'^\x{0370}-\x{03FF}'; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub CHARTYPE::NUMBER{ |
33
|
3
|
|
|
3
|
|
15
|
'^\x{2150}-\x{218F}\x{0030}-\x{0039}'; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub CHARTYPE::ALPHABET{ |
37
|
4
|
|
|
4
|
|
25
|
'^\x{0041}-\x{005A}^\x{0061}-\x{007A}'; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub CHARTYPE::CYRILLIC{ |
41
|
2
|
|
|
2
|
|
12
|
'^\x{0400}-\x{04FF}'; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub CHARTYPE::MATH{ |
45
|
2
|
|
|
2
|
|
10
|
'^\x{2200}-\x{22FF}'; |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
sub CHARTYPE::PUNCTUATION{ |
49
|
1
|
|
|
1
|
|
7
|
'^\x{2000}-\x{206F}'; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
__END__ |