PHP 클래스 Swift_StreamFilters_StringReplacementFilter, Halite

저자: Chris Corbyn
상속: implements Swift_StreamFilter
파일 보기 프로젝트 열기: HaliteChallenge/Halite

공개 메소드들

메소드 설명
__construct ( string | array $search, string | array $replace ) Create a new StringReplacementFilter with $search and $replace.
filter ( string $buffer ) : string Perform the actual replacements on $buffer and return the result.
shouldBuffer ( string $buffer ) : boolean Returns true if based on the buffer passed more bytes should be buffered.

메소드 상세

__construct() 공개 메소드

Create a new StringReplacementFilter with $search and $replace.
public __construct ( string | array $search, string | array $replace )
$search string | array
$replace string | array

filter() 공개 메소드

Perform the actual replacements on $buffer and return the result.
public filter ( string $buffer ) : string
$buffer string
리턴 string

shouldBuffer() 공개 메소드

Returns true if based on the buffer passed more bytes should be buffered.
public shouldBuffer ( string $buffer ) : boolean
$buffer string
리턴 boolean