PHP 클래스 Swift_StreamFilters_ByteArrayReplacementFilter

This stream filter deals with Byte arrays rather than simple strings.
저자: Chris Corbyn
상속: implements Swift_StreamFilter
파일 보기 프로젝트 열기: swiftmailer/swiftmailer

공개 메소드들

메소드 설명
__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