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 "
Показать файл
Открыть проект
Примеры использования класса
Защищенные свойства (Protected)
Свойство |
Тип |
Описание |
|
$tokenSpecifications |
array |
For readability reasons this array is created in the constructor to be
able to use temporary variables. |
|
Открытые методы
Защищенные методы
Описание методов
__construct()
публичный Метод
filterValues()
защищенный Метод
Filter out numeric array keys.
Parse the specified transformation file into an AST.
parseString()
публичный Метод
Parse the given string into an AST.
tokenize()
защищенный Метод
Returns an array of tokens
Описание свойств
$tokenSpecifications защищенное свойство
For readability reasons this array is created in the constructor to be
able to use temporary variables.
protected array $tokenSpecifications |
Результат |
array |
|