PHP Класс StripPhpComments, symfony-1.4

(if you have more complex Php parsing needs, use a real lexer). Since this class heavily relies on the single char read function, you are reccomended to make it work on top of a buffered reader.
См. также: FilterReader
Автор: hans lellelid, [email protected]
Наследование: extends BaseFilterReader, implements ChainableReader
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
chain ( Reader $reader ) : a Creates a new StripPhpComments using the passed in Reader for instantiation.
read ( $len = null ) : the Returns the stream without Php comments.
readChar ( ) * Returns the next character in the filtered stream, not including Php comments.

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

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

Creates a new StripPhpComments using the passed in Reader for instantiation.
public chain ( Reader $reader ) : a
$reader Reader
Результат a new filter based on this configuration, but filtering the specified reader

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

Returns the stream without Php comments.
public read ( $len = null ) : the
Результат the resulting stream, or -1 if the end of the resulting stream has been reached

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

* Returns the next character in the filtered stream, not including Php comments.
Устаревший:
public readChar ( )