PHP 클래스 eZ\Publish\Core\Persistence\TransformationProcessor\PcreCompiler

파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$converter eZ\Publish\Core\Persistence\Utf8Converter Class for converting UTF-8 characters.

공개 메소드들

메소드 설명
__construct ( Utf8Converter $converter ) Construct from UTF8Converter.
compile ( array $ast ) : array Compile AST into a set of regular expressions.

보호된 메소드들

메소드 설명
compileCharacter ( string $char ) : string Compile a single source character definition into a plain UTF-8 character.
compileMap ( array $rule ) : array Compile map rule.
compileReplace ( array $rule ) : array Compile replace rule.
compileRule ( array $rule ) : array Compiles a single rule.
compileTargetCharacter ( string $char ) : callback Compile target into a closure, which can be used by preg_replace_callback.
compileTranspose ( array $rule ) : array Compile transpose rule.
compileTransposeModulo ( array $rule ) : array Compile transpose modulo rule.
getModuloCharRange ( string $start, string $end, string $modulo ) : string Get string with all characters defined by parameters.
getTransposeClosure ( string $operator, string $value ) : callback Returns a closure which modifies the provided character by the given value.

메소드 상세

__construct() 공개 메소드

Construct from UTF8Converter.
public __construct ( Utf8Converter $converter )
$converter eZ\Publish\Core\Persistence\Utf8Converter

compile() 공개 메소드

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.
public compile ( array $ast ) : array
$ast array
리턴 array

compileCharacter() 보호된 메소드

Handles the two formats from the possible character definitions: - U+xxxx : Unicode value in hexadecimal - xx: Ascii value in hexadecimal
protected compileCharacter ( string $char ) : string
$char string
리턴 string

compileMap() 보호된 메소드

Compile map rule.
protected compileMap ( array $rule ) : array
$rule array
리턴 array

compileReplace() 보호된 메소드

Compile replace rule.
protected compileReplace ( array $rule ) : array
$rule array
리턴 array

compileRule() 보호된 메소드

Compiles a single rule.
protected compileRule ( array $rule ) : array
$rule array
리턴 array

compileTargetCharacter() 보호된 메소드

Compile target into a closure, which can be used by preg_replace_callback.
protected compileTargetCharacter ( string $char ) : callback
$char string
리턴 callback

compileTranspose() 보호된 메소드

Compile transpose rule.
protected compileTranspose ( array $rule ) : array
$rule array
리턴 array

compileTransposeModulo() 보호된 메소드

Compile transpose modulo rule.
protected compileTransposeModulo ( array $rule ) : array
$rule array
리턴 array

getModuloCharRange() 보호된 메소드

Returns a string containing all UTF-8 characters starting with the specified $start character up to the $end character with the step size defined in $modulo.
protected getModuloCharRange ( string $start, string $end, string $modulo ) : string
$start string
$end string
$modulo string
리턴 string

getTransposeClosure() 보호된 메소드

Returns a closure which modifies the provided character by the given value.
protected getTransposeClosure ( string $operator, string $value ) : callback
$operator string
$value string
리턴 callback

프로퍼티 상세

$converter 보호되어 있는 프로퍼티

Class for converting UTF-8 characters.
protected Utf8Converter,eZ\Publish\Core\Persistence $converter
리턴 eZ\Publish\Core\Persistence\Utf8Converter