Method | Description | |
---|---|---|
__construct ( array $search, array $replace ) | Create a new ByteArrayReplacementFilter with $search and $replace. | |
filter ( array $buffer, integer $minReplaces ) : array | Perform the actual replacements on $buffer and return the result. | |
shouldBuffer ( array $buffer ) : boolean | Returns true if based on the buffer passed more bytes should be buffered. |
public __construct ( array $search, array $replace ) | ||
$search | array | |
$replace | array |
public shouldBuffer ( array $buffer ) : boolean | ||
$buffer | array | |
return | boolean |