
Module::Checkstyle::Util - Convenient functions for checks

Return the string "Expected '$expected' but got '$got'" but with $expected and $got reduced to the reftype if they are references.
Creates a new Module::Checkstyle::Problem object.
$config must be a Module::Checkstyle::Config object which will be used togther will the caller and $directive to determine severity.
$line can be either a PPI::Element object,
an array reference or a scalar.
If it is an array reference the 0-elementwill be used as line.
Creates a new Module::Checkstyle::Problem object with the given severity,
message,
line and file.
Returns 1 if $value is either "y",
"yes",
"true" or "1" not regarding case.
All other value returns 0.
Returns the numeric value given in $value if it is integer-numeric with an optional minus-sign.
All other values returns 0.
Returns a regular expression object that will match what's given in $value.
If it creation of the regexp-object was unsuccessfull it will return undefined.
Returns a true value if the string $value equals a valid position property.
These are same and alone.
Returns a true value if the string $value equals a valid alignment property.
These are left,
middle and right.
