Uses regular expressions to perform filename transformations.
author |
Andreas Aderhold andi@binarycloud.com |
---|---|
author |
Hans Lellelid hans@velum.net |
package |
phing.mappers |
__construct()
main(mixed $sourceFileName) : array|null
mixed
The data the mapper works on.
array|null
replaceReferences(string $source) : array|null|string
groups of the source.
intern |
the expression has already been processed (when ->matches() was run in Main()) so no need to pass $source again to the engine. Replaces \1 with value of reg->getGroup(1) and return the modified "to" string. |
---|
string
The source filename.
array|null|string
FIXME Can't we just use engine->replace() to handle this? the Preg engine will automatically convert \1 references to $1
replaceReferencesCallback(array $matches) : string
array
Matched elements.
string
setFrom(string $from) : void
string
On what this mapper should work
setTo(string $to) : void
intern |
[HL] I'm changing the way this works for now to just use string
|
---|
string
To what this mapper should convert the from string
to : string
var |
---|
string