메소드 |
설명 |
|
__toString ( ) : string |
Return string stored in Buffer. |
|
drain ( ) : string |
Remove and return all data from the buffer. |
|
insert ( string $string, integer $position ) |
Insert the string at the given position in the buffer. |
|
isEmpty ( ) : boolean |
Determine if the buffer is empty. |
|
length ( ) : integer |
Return current length of the buffer. |
|
peek ( integer $length, integer $offset ) : string |
Return the given number of characters (at most) from the buffer without removing them from the buffer. |
|
pop ( integer $length ) : string |
Remove the given number of characters (at most) from the buffer starting at the end. |
|
push ( string $data ) |
Push the given string onto the end of the buffer. |
|
remove ( integer $length, integer $offset ) : string |
Remove and return the given number of characters (at most) from the buffer. |
|
replace ( mixed $search, mixed $replace ) : integer |
Replace all occurences of $search with $replace. See str_replace() function. |
|
search ( string $string, boolean $reverse = false ) : integer | boolean |
Return the position of the given pattern in the buffer if it exists, or false if it does not. |
|
shift ( integer $length ) : string |
Remove the given number of characters (at most) from the buffer starting at the beginning. |
|
unshift ( string $data ) |
Put the given string at the beginning of the buffer. |
|