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
파일 보기 프로젝트 열기: vjousse/symfony-1.4 1 사용 예제들

공개 메소드들

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