PHP Класс Swift_StreamFilters_ByteArrayReplacementFilter

This stream filter deals with Byte arrays rather than simple strings.
Автор: Chris Corbyn
Наследование: implements Swift_StreamFilter
Показать файл Открыть проект

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

Create a new ByteArrayReplacementFilter with $search and $replace.
public __construct ( array $search, array $replace )
$search array
$replace array

filter() публичный Метод

Perform the actual replacements on $buffer and return the result.
public filter ( array $buffer, integer $minReplaces ) : array
$buffer array
$minReplaces integer
Результат array

shouldBuffer() публичный Метод

Returns true if based on the buffer passed more bytes should be buffered.
public shouldBuffer ( array $buffer ) : boolean
$buffer array
Результат boolean