Filename | /usr/share/perl5/MARC/Charset/Constants.pm |
Statements | Executed 53 statements in 1.27ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 14µs | 32µs | BEGIN@47 | MARC::Charset::Constants::
1 | 1 | 1 | 11µs | 22µs | BEGIN@18 | MARC::Charset::Constants::
1 | 1 | 1 | 9µs | 45µs | BEGIN@22 | MARC::Charset::Constants::
1 | 1 | 1 | 7µs | 29µs | BEGIN@42 | MARC::Charset::Constants::
1 | 1 | 1 | 7µs | 12µs | BEGIN@19 | MARC::Charset::Constants::
1 | 1 | 1 | 7µs | 58µs | BEGIN@20 | MARC::Charset::Constants::
1 | 1 | 1 | 6µs | 31µs | BEGIN@31 | MARC::Charset::Constants::
1 | 1 | 1 | 6µs | 24µs | BEGIN@41 | MARC::Charset::Constants::
1 | 1 | 1 | 6µs | 26µs | BEGIN@27 | MARC::Charset::Constants::
1 | 1 | 1 | 6µs | 28µs | BEGIN@24 | MARC::Charset::Constants::
1 | 1 | 1 | 6µs | 24µs | BEGIN@35 | MARC::Charset::Constants::
1 | 1 | 1 | 6µs | 28µs | BEGIN@46 | MARC::Charset::Constants::
1 | 1 | 1 | 6µs | 25µs | BEGIN@26 | MARC::Charset::Constants::
1 | 1 | 1 | 6µs | 26µs | BEGIN@29 | MARC::Charset::Constants::
1 | 1 | 1 | 6µs | 24µs | BEGIN@32 | MARC::Charset::Constants::
1 | 1 | 1 | 6µs | 28µs | BEGIN@39 | MARC::Charset::Constants::
1 | 1 | 1 | 5µs | 40µs | BEGIN@30 | MARC::Charset::Constants::
1 | 1 | 1 | 5µs | 24µs | BEGIN@34 | MARC::Charset::Constants::
1 | 1 | 1 | 5µs | 24µs | BEGIN@40 | MARC::Charset::Constants::
1 | 1 | 1 | 5µs | 24µs | BEGIN@43 | MARC::Charset::Constants::
1 | 1 | 1 | 5µs | 24µs | BEGIN@36 | MARC::Charset::Constants::
1 | 1 | 1 | 5µs | 24µs | BEGIN@45 | MARC::Charset::Constants::
1 | 1 | 1 | 5µs | 25µs | BEGIN@25 | MARC::Charset::Constants::
1 | 1 | 1 | 5µs | 24µs | BEGIN@37 | MARC::Charset::Constants::
1 | 1 | 1 | 5µs | 23µs | BEGIN@44 | MARC::Charset::Constants::
0 | 0 | 0 | 0s | 0s | charset_name | MARC::Charset::Constants::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package MARC::Charset::Constants; | ||||
2 | |||||
3 | =head1 NAME | ||||
4 | |||||
5 | MARC::Charset::Constants - constants for MARC::Charset | ||||
6 | |||||
7 | =head1 SYNOPSIS | ||||
8 | |||||
9 | use MARC::Charset::Constants qw(:all); | ||||
10 | |||||
11 | =head1 DESCRIPTION | ||||
12 | |||||
13 | MARC::Charset needs to recognize various codes which are given | ||||
14 | descriptive names and assigned to constants in this package. | ||||
15 | |||||
16 | =cut | ||||
17 | |||||
18 | 2 | 22µs | 2 | 32µs | # spent 22µs (11+10) within MARC::Charset::Constants::BEGIN@18 which was called:
# once (11µs+10µs) by MARC::Charset::Code::BEGIN@8 at line 18 # spent 22µs making 1 call to MARC::Charset::Constants::BEGIN@18
# spent 10µs making 1 call to strict::import |
19 | 2 | 21µs | 2 | 16µs | # spent 12µs (7+5) within MARC::Charset::Constants::BEGIN@19 which was called:
# once (7µs+5µs) by MARC::Charset::Code::BEGIN@8 at line 19 # spent 12µs making 1 call to MARC::Charset::Constants::BEGIN@19
# spent 5µs making 1 call to warnings::import |
20 | 2 | 28µs | 2 | 108µs | # spent 58µs (7+51) within MARC::Charset::Constants::BEGIN@20 which was called:
# once (7µs+51µs) by MARC::Charset::Code::BEGIN@8 at line 20 # spent 58µs making 1 call to MARC::Charset::Constants::BEGIN@20
# spent 51µs making 1 call to base::import |
21 | |||||
22 | 2 | 31µs | 2 | 81µs | # spent 45µs (9+36) within MARC::Charset::Constants::BEGIN@22 which was called:
# once (9µs+36µs) by MARC::Charset::Code::BEGIN@8 at line 22 # spent 45µs making 1 call to MARC::Charset::Constants::BEGIN@22
# spent 36µs making 1 call to constant::import |
23 | |||||
24 | 2 | 24µs | 2 | 50µs | # spent 28µs (6+22) within MARC::Charset::Constants::BEGIN@24 which was called:
# once (6µs+22µs) by MARC::Charset::Code::BEGIN@8 at line 24 # spent 28µs making 1 call to MARC::Charset::Constants::BEGIN@24
# spent 22µs making 1 call to constant::import |
25 | 2 | 37µs | 2 | 45µs | # spent 25µs (5+20) within MARC::Charset::Constants::BEGIN@25 which was called:
# once (5µs+20µs) by MARC::Charset::Code::BEGIN@8 at line 25 # spent 25µs making 1 call to MARC::Charset::Constants::BEGIN@25
# spent 20µs making 1 call to constant::import |
26 | 2 | 26µs | 2 | 44µs | # spent 25µs (6+19) within MARC::Charset::Constants::BEGIN@26 which was called:
# once (6µs+19µs) by MARC::Charset::Code::BEGIN@8 at line 26 # spent 25µs making 1 call to MARC::Charset::Constants::BEGIN@26
# spent 19µs making 1 call to constant::import |
27 | 2 | 27µs | 2 | 46µs | # spent 26µs (6+20) within MARC::Charset::Constants::BEGIN@27 which was called:
# once (6µs+20µs) by MARC::Charset::Code::BEGIN@8 at line 27 # spent 26µs making 1 call to MARC::Charset::Constants::BEGIN@27
# spent 20µs making 1 call to constant::import |
28 | |||||
29 | 2 | 23µs | 2 | 45µs | # spent 26µs (6+20) within MARC::Charset::Constants::BEGIN@29 which was called:
# once (6µs+20µs) by MARC::Charset::Code::BEGIN@8 at line 29 # spent 26µs making 1 call to MARC::Charset::Constants::BEGIN@29
# spent 20µs making 1 call to constant::import |
30 | 2 | 29µs | 2 | 75µs | # spent 40µs (5+35) within MARC::Charset::Constants::BEGIN@30 which was called:
# once (5µs+35µs) by MARC::Charset::Code::BEGIN@8 at line 30 # spent 40µs making 1 call to MARC::Charset::Constants::BEGIN@30
# spent 35µs making 1 call to constant::import |
31 | 2 | 26µs | 2 | 56µs | # spent 31µs (6+25) within MARC::Charset::Constants::BEGIN@31 which was called:
# once (6µs+25µs) by MARC::Charset::Code::BEGIN@8 at line 31 # spent 31µs making 1 call to MARC::Charset::Constants::BEGIN@31
# spent 25µs making 1 call to constant::import |
32 | 2 | 24µs | 2 | 42µs | # spent 24µs (6+19) within MARC::Charset::Constants::BEGIN@32 which was called:
# once (6µs+19µs) by MARC::Charset::Code::BEGIN@8 at line 32 # spent 24µs making 1 call to MARC::Charset::Constants::BEGIN@32
# spent 18µs making 1 call to constant::import |
33 | |||||
34 | 2 | 26µs | 2 | 43µs | # spent 24µs (5+19) within MARC::Charset::Constants::BEGIN@34 which was called:
# once (5µs+19µs) by MARC::Charset::Code::BEGIN@8 at line 34 # spent 24µs making 1 call to MARC::Charset::Constants::BEGIN@34
# spent 19µs making 1 call to constant::import |
35 | 2 | 22µs | 2 | 43µs | # spent 24µs (6+18) within MARC::Charset::Constants::BEGIN@35 which was called:
# once (6µs+18µs) by MARC::Charset::Code::BEGIN@8 at line 35 # spent 24µs making 1 call to MARC::Charset::Constants::BEGIN@35
# spent 18µs making 1 call to constant::import |
36 | 2 | 21µs | 2 | 42µs | # spent 24µs (5+18) within MARC::Charset::Constants::BEGIN@36 which was called:
# once (5µs+18µs) by MARC::Charset::Code::BEGIN@8 at line 36 # spent 24µs making 1 call to MARC::Charset::Constants::BEGIN@36
# spent 18µs making 1 call to constant::import |
37 | 2 | 27µs | 2 | 43µs | # spent 24µs (5+19) within MARC::Charset::Constants::BEGIN@37 which was called:
# once (5µs+19µs) by MARC::Charset::Code::BEGIN@8 at line 37 # spent 24µs making 1 call to MARC::Charset::Constants::BEGIN@37
# spent 19µs making 1 call to constant::import |
38 | |||||
39 | 2 | 29µs | 2 | 50µs | # spent 28µs (6+22) within MARC::Charset::Constants::BEGIN@39 which was called:
# once (6µs+22µs) by MARC::Charset::Code::BEGIN@8 at line 39 # spent 28µs making 1 call to MARC::Charset::Constants::BEGIN@39
# spent 22µs making 1 call to constant::import |
40 | 2 | 22µs | 2 | 43µs | # spent 24µs (5+19) within MARC::Charset::Constants::BEGIN@40 which was called:
# once (5µs+19µs) by MARC::Charset::Code::BEGIN@8 at line 40 # spent 24µs making 1 call to MARC::Charset::Constants::BEGIN@40
# spent 19µs making 1 call to constant::import |
41 | 2 | 492µs | 2 | 42µs | # spent 24µs (6+18) within MARC::Charset::Constants::BEGIN@41 which was called:
# once (6µs+18µs) by MARC::Charset::Code::BEGIN@8 at line 41 # spent 24µs making 1 call to MARC::Charset::Constants::BEGIN@41
# spent 18µs making 1 call to constant::import |
42 | 2 | 24µs | 2 | 50µs | # spent 29µs (7+22) within MARC::Charset::Constants::BEGIN@42 which was called:
# once (7µs+22µs) by MARC::Charset::Code::BEGIN@8 at line 42 # spent 29µs making 1 call to MARC::Charset::Constants::BEGIN@42
# spent 22µs making 1 call to constant::import |
43 | 2 | 22µs | 2 | 42µs | # spent 24µs (5+18) within MARC::Charset::Constants::BEGIN@43 which was called:
# once (5µs+18µs) by MARC::Charset::Code::BEGIN@8 at line 43 # spent 24µs making 1 call to MARC::Charset::Constants::BEGIN@43
# spent 18µs making 1 call to constant::import |
44 | 2 | 22µs | 2 | 40µs | # spent 23µs (5+18) within MARC::Charset::Constants::BEGIN@44 which was called:
# once (5µs+18µs) by MARC::Charset::Code::BEGIN@8 at line 44 # spent 23µs making 1 call to MARC::Charset::Constants::BEGIN@44
# spent 18µs making 1 call to constant::import |
45 | 2 | 26µs | 2 | 42µs | # spent 24µs (5+19) within MARC::Charset::Constants::BEGIN@45 which was called:
# once (5µs+19µs) by MARC::Charset::Code::BEGIN@8 at line 45 # spent 24µs making 1 call to MARC::Charset::Constants::BEGIN@45
# spent 19µs making 1 call to constant::import |
46 | 2 | 25µs | 2 | 50µs | # spent 28µs (6+22) within MARC::Charset::Constants::BEGIN@46 which was called:
# once (6µs+22µs) by MARC::Charset::Code::BEGIN@8 at line 46 # spent 28µs making 1 call to MARC::Charset::Constants::BEGIN@46
# spent 22µs making 1 call to constant::import |
47 | 2 | 184µs | 2 | 51µs | # spent 32µs (14+18) within MARC::Charset::Constants::BEGIN@47 which was called:
# once (14µs+18µs) by MARC::Charset::Code::BEGIN@8 at line 47 # spent 32µs making 1 call to MARC::Charset::Constants::BEGIN@47
# spent 18µs making 1 call to constant::import |
48 | |||||
49 | 1 | 3µs | our %EXPORT_TAGS = ( all => [ qw( | ||
50 | ESCAPE GREEK_SYMBOLS SUBSCRIPTS SUPERSCRIPTS ASCII_DEFAULT | ||||
51 | SINGLE_G0_A SINGLE_G0_B MULTI_G0_A MULTI_G0_B SINGLE_G1_A | ||||
52 | SINGLE_G1_B MULTI_G1_A MULTI_G1_B BASIC_ARABIC | ||||
53 | EXTENDED_ARABIC BASIC_LATIN EXTENDED_LATIN CJK BASIC_CYRILLIC | ||||
54 | EXTENDED_CYRILLIC BASIC_GREEK BASIC_HEBREW) ]); | ||||
55 | |||||
56 | 1 | 2µs | our @EXPORT_OK = qw( | ||
57 | ESCAPE GREEK_SYMBOLS SUBSCRIPTS SUPERSCRIPTS ASCII_DEFAULT | ||||
58 | SINGLE_G0_A SINGLE_G0_B MULTI_G0_A MULTI_G0_B SINGLE_G1_A | ||||
59 | SINGLE_G1_B MULTI_G1_A MULTI_G1_B BASIC_ARABIC | ||||
60 | EXTENDED_ARABIC BASIC_LATIN EXTENDED_LATIN CJK BASIC_CYRILLIC | ||||
61 | EXTENDED_CYRILLIC BASIC_GREEK BASIC_HEBREW); | ||||
62 | |||||
63 | sub charset_name | ||||
64 | { | ||||
65 | my $charset = shift; | ||||
66 | return 'GREEK_SYMBOLS' if $charset eq GREEK_SYMBOLS; | ||||
67 | return 'SUBSCRIPTS' if $charset eq SUBSCRIPTS; | ||||
68 | return 'SUPERSCRIPTS' if $charset eq SUPERSCRIPTS; | ||||
69 | return 'ASCII_DEFAULT' if $charset eq ASCII_DEFAULT; | ||||
70 | return 'BASIC_ARABIC' if $charset eq BASIC_ARABIC; | ||||
71 | return 'EXTENDED_ARABIC' if $charset eq EXTENDED_ARABIC; | ||||
72 | return 'BASIC_LATIN' if $charset eq BASIC_LATIN; | ||||
73 | return 'EXTENDED_LATIN' if $charset eq EXTENDED_LATIN; | ||||
74 | return 'CJK' if $charset eq CJK; | ||||
75 | return 'BASIC_CYRILLIC' if $charset eq BASIC_CYRILLIC; | ||||
76 | return 'EXTENDED_CYRILLIC' if $charset eq EXTENDED_CYRILLIC; | ||||
77 | return 'BASIC_GREEK' if $charset eq BASIC_GREEK; | ||||
78 | return 'BASIC_HEBREW' if $charset eq BASIC_HEBREW; | ||||
79 | } | ||||
80 | |||||
81 | |||||
82 | 1 | 4µs | 1; |