css-sanitizer
Classes to parse and sanitize CSS
Loading...
Searching...
No Matches
Wikimedia\CSS\Parser\DataSource Interface Reference

Read data for the CSS parser. More...

+ Inheritance diagram for Wikimedia\CSS\Parser\DataSource:

Public Member Functions

 readCharacter ()
 Read a character from the data source.
 
 putBackCharacter ( $char)
 Push a character back onto the stream.
 

Public Attributes

const EOF = ''
 

Detailed Description

Read data for the CSS parser.

Member Function Documentation

◆ putBackCharacter()

Wikimedia\CSS\Parser\DataSource::putBackCharacter ( $char)

Push a character back onto the stream.

Parameters
string$charOne UTF-8 character

Implemented in Wikimedia\CSS\Parser\StringDataSource.

◆ readCharacter()

Wikimedia\CSS\Parser\DataSource::readCharacter ( )

Read a character from the data source.

Returns
string One UTF-8 character, or self::EOF

Implemented in Wikimedia\CSS\Parser\StringDataSource.


The documentation for this interface was generated from the following file: