Property | Type | Description | |
---|---|---|---|
$converter | Class for converting UTF-8 characters. |
Method | Description | |
---|---|---|
__construct ( |
Construct from UTF8Converter. | |
compile ( array $ast ) : array | Compile AST into a set of regular expressions. |
Method | Description | |
---|---|---|
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. |
public __construct ( |
||
$converter |
protected compileCharacter ( string $char ) : string | ||
$char | string | |
return | string |
protected compileMap ( array $rule ) : array | ||
$rule | array | |
return | array |
protected compileReplace ( array $rule ) : array | ||
$rule | array | |
return | array |
protected compileRule ( array $rule ) : array | ||
$rule | array | |
return | array |
protected compileTargetCharacter ( string $char ) : callback | ||
$char | string | |
return | callback |
protected compileTranspose ( array $rule ) : array | ||
$rule | array | |
return | array |
protected compileTransposeModulo ( array $rule ) : array | ||
$rule | array | |
return | array |