Regexp/Token/CharClass.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 100% 25 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Regexp/Structure/Subexpression.pm ↑ Summary Regexp/Token/GroupType/Atomic_Script_Run.pm »
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 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 9 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
39  
40 9 ▶use base qw{ PPIx::Regexp::Token };
Subroutine BEGIN: called CC=1 SCAR=0.0
41  
42 9 ▶use PPIx::Regexp::Constant qw{ @CARP_NOT };
Subroutine BEGIN: called CC=1 SCAR=0.0
43  
44 9 ▶use PPIx::Regexp::Util qw{ :width_one };
Subroutine BEGIN: called CC=1 SCAR=0.0
45  
46 9 our $VERSION = '0.092';
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<undef> 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 ▶sub is_matcher { return 1; }
Subroutine is_matcher: called CC=1 SCAR=0.0
Pod documented
73  
74 9 1;
75  
76 __END__
« Regexp/Structure/Subexpression.pm ↑ Summary Regexp/Token/GroupType/Atomic_Script_Run.pm »