| line | stmt | bran | cond | sub | pod | time | 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 is a | 
| 14 |  |  |  |  |  |  | L. | 
| 15 |  |  |  |  |  |  |  | 
| 16 |  |  |  |  |  |  | C is the parent of | 
| 17 |  |  |  |  |  |  | L | 
| 18 |  |  |  |  |  |  | and | 
| 19 |  |  |  |  |  |  | L. | 
| 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 | 9 |  |  | 9 |  | 92 | use strict; | 
|  | 9 |  |  |  |  | 18 |  | 
|  | 9 |  |  |  |  | 268 |  | 
| 38 | 9 |  |  | 9 |  | 64 | use warnings; | 
|  | 9 |  |  |  |  | 34 |  | 
|  | 9 |  |  |  |  | 249 |  | 
| 39 |  |  |  |  |  |  |  | 
| 40 | 9 |  |  | 9 |  | 50 | use base qw{ PPIx::Regexp::Token }; | 
|  | 9 |  |  |  |  | 20 |  | 
|  | 9 |  |  |  |  | 865 |  | 
| 41 |  |  |  |  |  |  |  | 
| 42 | 9 |  |  | 9 |  | 68 | use PPIx::Regexp::Constant qw{ @CARP_NOT }; | 
|  | 9 |  |  |  |  | 22 |  | 
|  | 9 |  |  |  |  | 902 |  | 
| 43 |  |  |  |  |  |  |  | 
| 44 | 9 |  |  | 9 |  | 90 | use PPIx::Regexp::Util qw{ :width_one }; | 
|  | 9 |  |  |  |  | 20 |  | 
|  | 9 |  |  |  |  | 1365 |  | 
| 45 |  |  |  |  |  |  |  | 
| 46 |  |  |  |  |  |  | our $VERSION = '0.087'; | 
| 47 |  |  |  |  |  |  |  | 
| 48 |  |  |  |  |  |  | # Return true if the token can be quantified, and false otherwise | 
| 49 |  |  |  |  |  |  | # sub can_be_quantified { return }; | 
| 50 |  |  |  |  |  |  |  | 
| 51 |  |  |  |  |  |  | ##=head2 is_case_sensitive | 
| 52 |  |  |  |  |  |  | ## | 
| 53 |  |  |  |  |  |  | ##This method returns true if the character class is case-sensitive (that | 
| 54 |  |  |  |  |  |  | ##is, if it may match or not based on the case of the string being | 
| 55 |  |  |  |  |  |  | ##matched), false (but defined) if it is not, and simply returns (giving | 
| 56 |  |  |  |  |  |  | ##C in scalar context and an empty list in list context) if the | 
| 57 |  |  |  |  |  |  | ##case-sensitivity can not be determined. | 
| 58 |  |  |  |  |  |  | ## | 
| 59 |  |  |  |  |  |  | ##=cut | 
| 60 |  |  |  |  |  |  | ## | 
| 61 |  |  |  |  |  |  | ##sub is_case_sensitive { | 
| 62 |  |  |  |  |  |  | ##    return; | 
| 63 |  |  |  |  |  |  | ##} | 
| 64 |  |  |  |  |  |  |  | 
| 65 |  |  |  |  |  |  | =head2 is_matcher | 
| 66 |  |  |  |  |  |  |  | 
| 67 |  |  |  |  |  |  | This method returns a true value because a character class actually | 
| 68 |  |  |  |  |  |  | matches something. | 
| 69 |  |  |  |  |  |  |  | 
| 70 |  |  |  |  |  |  | =cut | 
| 71 |  |  |  |  |  |  |  | 
| 72 | 1 |  |  | 1 | 1 | 4 | sub is_matcher { return 1; } | 
| 73 |  |  |  |  |  |  |  | 
| 74 |  |  |  |  |  |  | 1; | 
| 75 |  |  |  |  |  |  |  | 
| 76 |  |  |  |  |  |  | __END__ |