Class

eZ\Publish\Core\Persistence\TransformationProcessor\PcreCompiler

class PcreCompiler

Compiles the AST of parsed transformation rules into a set of PCRE replace regular expressions.

Methods

__construct(Utf8Converter $converter)

Construct from UTF8Converter.

array compile(array $ast)

Compile AST into a set of regular expressions.

Details

at line 33
public __construct(Utf8Converter $converter)

Construct from UTF8Converter.

Parameters

Utf8Converter $converter

at line 49
public array compile(array $ast)

Compile AST into a set of regular expressions.

The returned array contains a set of regular expressions and their replacement callbacks. The regular expressions can then be applied to strings to executed the transformations.

Parameters

array $ast

Return Value

array