| Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/PPIx/Regexp/Token/CharClass.pm |
| Statements | Executed 8 statements in 89µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 13µs | 26µs | PPIx::Regexp::Token::CharClass::BEGIN@37 |
| 1 | 1 | 1 | 11µs | 16µs | PPIx::Regexp::Token::CharClass::BEGIN@38 |
| 1 | 1 | 1 | 8µs | 69µs | PPIx::Regexp::Token::CharClass::BEGIN@40 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | =head1 NAME | ||||
| 2 | |||||
| 3 | PPIx::Regexp::Token::CharClass - Represent a character class | ||||
| 4 | |||||
| 5 | =head1 SYNOPSIS | ||||
| 6 | |||||
| 7 | use PPIx::Regexp::Dumper; | ||||
| 8 | PPIx::Regexp::Dumper->new( 'qr{\w}smx' ) | ||||
| 9 | ->print(); | ||||
| 10 | |||||
| 11 | =head1 INHERITANCE | ||||
| 12 | |||||
| 13 | C<PPIx::Regexp::Token::CharClass> is a | ||||
| 14 | L<PPIx::Regexp::Token|PPIx::Regexp::Token>. | ||||
| 15 | |||||
| 16 | C<PPIx::Regexp::Token::CharClass> is the parent of | ||||
| 17 | L<PPIx::Regexp::Token::CharClass::POSIX|PPIx::Regexp::Token::CharClass::POSIX> | ||||
| 18 | and | ||||
| 19 | L<PPIx::Regexp::Token::CharClass::Simple|PPIx::Regexp::Token::CharClass::Simple>. | ||||
| 20 | |||||
| 21 | =head1 DESCRIPTION | ||||
| 22 | |||||
| 23 | This class represents a character class. It is not intended that this | ||||
| 24 | class be instantiated; it simply serves to identify a character class in | ||||
| 25 | the class hierarchy, and provide any common methods that might become | ||||
| 26 | useful. | ||||
| 27 | |||||
| 28 | =head1 METHODS | ||||
| 29 | |||||
| 30 | This class provides the following public methods beyond those provided | ||||
| 31 | by its superclass. | ||||
| 32 | |||||
| 33 | =cut | ||||
| 34 | |||||
| 35 | package PPIx::Regexp::Token::CharClass; | ||||
| 36 | |||||
| 37 | 2 | 22µs | 2 | 39µs | # spent 26µs (13+13) within PPIx::Regexp::Token::CharClass::BEGIN@37 which was called:
# once (13µs+13µs) by base::import at line 37 # spent 26µs making 1 call to PPIx::Regexp::Token::CharClass::BEGIN@37
# spent 13µs making 1 call to strict::import |
| 38 | 2 | 24µs | 2 | 22µs | # spent 16µs (11+5) within PPIx::Regexp::Token::CharClass::BEGIN@38 which was called:
# once (11µs+5µs) by base::import at line 38 # spent 16µs making 1 call to PPIx::Regexp::Token::CharClass::BEGIN@38
# spent 5µs making 1 call to warnings::import |
| 39 | |||||
| 40 | 2 | 40µs | 2 | 69µs | # spent 69µs (8+60) within PPIx::Regexp::Token::CharClass::BEGIN@40 which was called:
# once (8µs+60µs) by base::import at line 40 # spent 69µs making 1 call to PPIx::Regexp::Token::CharClass::BEGIN@40
# spent 60µs making 1 call to base::import, recursion: max depth 1, sum of overlapping time 60µs |
| 41 | |||||
| 42 | 1 | 600ns | our $VERSION = '0.036'; | ||
| 43 | |||||
| 44 | # Return true if the token can be quantified, and false otherwise | ||||
| 45 | # sub can_be_quantified { return }; | ||||
| 46 | |||||
| 47 | ##=head2 is_case_sensitive | ||||
| 48 | ## | ||||
| 49 | ##This method returns true if the character class is case-sensitive (that | ||||
| 50 | ##is, if it may match or not based on the case of the string being | ||||
| 51 | ##matched), false (but defined) if it is not, and simply returns (giving | ||||
| 52 | ##C<undef> in scalar context and an empty list in list context) if the | ||||
| 53 | ##case-sensitivity can not be determined. | ||||
| 54 | ## | ||||
| 55 | ##=cut | ||||
| 56 | ## | ||||
| 57 | ##sub is_case_sensitive { | ||||
| 58 | ## return; | ||||
| 59 | ##} | ||||
| 60 | |||||
| 61 | 1 | 2µs | 1; | ||
| 62 | |||||
| 63 | __END__ |