classes/phing/mappers/RegexpMapper.php

\RegexpMapper

Uses regular expressions to perform filename transformations.

Implements
\FileNameMapper
author
Andreas Aderhold
author
Hans Lellelid
package
phing.mappers
version
$Revision: 526 $

Properties

Propertyprivate\Regexp  $reg= ''

The Regexp engine.

Details
Type
\Regexp
Propertyprivatestring  $to= ''

Details
Type
string

Methods

methodpublic  __construct( ) :
methodpublic  main(  $sourceFileName ) :
Parameters
Name Type Description
$sourceFileName
methodprivate  replaceReferences( string $source ) :
Replace all backreferences in the to pattern with the matched groups.

groups of the source.

Parameters
Name Type Description
$source string The source filename.
methodpublic  setFrom(  $from ) :
Sets the "from" pattern. Required.
Parameters
Name Type Description
$from
methodpublic  setTo(  $to ) :
Sets the "to" pattern. Required.
Parameters
Name Type Description
$to
Documentation was generated by DocBlox 0.13.1.