PHP 클래스 eZ\Publish\Core\Persistence\TransformationProcessor\DefinitionBased\Parser

The transformation specifications look like: CF = CF... : Map from one char to one or more chars (map) CF - CF = CF... : Map range of chars to one or more chars (replace) CF - CF +- xx : Transpose several chars by value xx (transpose) CF - CF % yy +- xx : Transpose several chars by value xx, yy denotes skip value yy equal to 1 is the same as 'transpose' (transpose-modulo) TI[,TI...] : CF = Character Format TI = Transform Identifier Character formats: U+xxxx : Unicode value in hexadecimal xx: Ascii value in hexadecimal remove : Remove character from result, can only be used in destination keep : Keep character as it is, can only be used in destination "xxxx" : Multiple characters as a string, can only be used in destination, \\ means \ and \" means "
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$tokenSpecifications array For readability reasons this array is created in the constructor to be able to use temporary variables.

공개 메소드들

메소드 설명
__construct ( ) Construct.
parse ( string $file ) : array Parse the specified transformation file into an AST.
parseString ( string $string ) : array Parse the given string into an AST.

보호된 메소드들

메소드 설명
filterValues ( array $data ) : array Filter out numeric array keys.
tokenize ( string $string ) : array Tokenize transformation input file.

메소드 상세

__construct() 공개 메소드

Construct.
public __construct ( )

filterValues() 보호된 메소드

Filter out numeric array keys.
protected filterValues ( array $data ) : array
$data array
리턴 array

parse() 공개 메소드

Parse the specified transformation file into an AST.
public parse ( string $file ) : array
$file string
리턴 array

parseString() 공개 메소드

Parse the given string into an AST.
public parseString ( string $string ) : array
$string string
리턴 array

tokenize() 보호된 메소드

Returns an array of tokens
protected tokenize ( string $string ) : array
$string string
리턴 array

프로퍼티 상세

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

For readability reasons this array is created in the constructor to be able to use temporary variables.
protected array $tokenSpecifications
리턴 array