\QueryPath\CSSInputStream

Simple wrapper to turn a string into an input stream.

This provides a standard interface on top of an array of characters.

Summary

Methods
Properties
Constants
__construct()
peek()
consume()
isEmpty()
$position
No constants found
No protected methods found
$stream
N/A
No private methods found
No private properties found
N/A

Properties

$position

$position : 

Type

$stream

$stream : 

Type

Methods

__construct()

__construct(  $string) 

Build a new CSS input stream from a string.

Parameters

$string

peek()

peek() : \QueryPath\CSS\char

Look ahead one character.

Returns

\QueryPath\CSS\char —

Returns the next character, but does not remove it from the stream.

consume()

consume() 

Get the next unconsumed character in the stream.

This will remove that character from the front of the stream and return it.

isEmpty()

isEmpty() : boolean

Check if the stream is empty.

Returns

boolean —

Returns TRUE when the stream is empty, FALSE otherwise.