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