This module can export the following subroutines:
is_ppi_regexp_element
is_ppi_regexp_element( $elem )
and print "$elem is a regexp of some sort\n";
This subroutine is public and supported.
This subroutine takes as its argument a PPI::Element. It returns a true value if the argument represents
a regular expression of some sort, and a false value otherwise.
__instance
__instance( $foo, 'Bar' )
and print '$foo isa Bar', "\n";
This subroutine is private to the "PPIx-Regexp" package.
This subroutine returns true if its first argument is an instance of the class specified by its second
argument. Unlike "UNIVERSAL::isa", the result is always false unless the first argument is a reference.
__is_ppi_regexp_element
__is_ppi_regexp_element( $elem )
and print "$elem is a regexp of some sort\n";
This subroutine is private to the "PPIx-Regexp" package.
This is a synonym for is_ppi_regexp_element(), and is deprecated in favor of it. If called, it will
complain via "Carp::cluck()" and then "goto &is_ppi_regexp_element".
__merge_perl_requirements
This subroutine is private to the "PPIx-Regexp" package.
This subroutine merges perl requirements as returned by the various "__perl_requirements()" methods.
__ns_can
This subroutine is private to the "PPIx-Regexp" package.
This method is analogous to "can()", but returns a reference to the code only if it is actually
implemented by the invoking name space.
__post_rebless_error
This method is private to the "PPIx-Regexp" package. The intended use is to alias it to
"__PPIX_ELEM__post_reblessing()".
It takes arguments as name/value pairs. Argument "{error}" is the error message; if it is omitted you get
a warning with stack trace. Argument "{explanation}" defaults to "{error}".
It returns the number of errors to add to the parse.
raw_width
This public method returns the minimum and maximum width matched by the element before taking into
account such details as what the element actually is and how it is quantified.
This implementation is appropriate to things that match exactly one character -- i.e. it returns "( 1, 1
)".
__to_ordinal_en
This subroutine is private to the "PPIx-Regexp" package.
This subroutine takes as its argument an integer and returns a string representing its ordinal in
English. For example
say __to_ordinal_en( 17 );
# 17th
width
my ( $min_wid, $max_wid ) = $self->width();
This public method (well, mixin) returns the minimum and maximum width of the text matched by the
element.
Elements which import this method must also implement a "raw_width()" method which returns the
unquantified width of the element.