1 | <?php |
||
24 | class ReplaceRegexp extends AbstractRule |
||
25 | { |
||
26 | /** |
||
27 | * PHP Constants that says what's happened with the PregRegexp |
||
28 | * |
||
29 | * @var array |
||
30 | */ |
||
31 | protected $pregErrs = array( |
||
32 | \PREG_INTERNAL_ERROR => 'Internal Error', |
||
33 | \PREG_BACKTRACK_LIMIT_ERROR => 'Backtrack limit', |
||
34 | \PREG_RECURSION_LIMIT_ERROR => 'Recursion limit', |
||
35 | \PREG_BAD_UTF8_ERROR => 'Bad UTF-8', |
||
36 | \PREG_BAD_UTF8_OFFSET_ERROR => 'Bad UTF-8 Offset' |
||
37 | ); |
||
38 | |||
39 | /** |
||
40 | * Operate the transformation |
||
41 | * |
||
42 | * @param string $input |
||
43 | * @param array $arguments |
||
44 | * |
||
45 | * @throws Inet\Transformation\Exception\TransformationException |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | 5 | public function transform($input, array $arguments) |
|
67 | } |
||
68 |