css-sanitizer
Classes to parse and sanitize CSS
Wikimedia\CSS\Parser\StringDataSource Class Reference

Read data for the CSS parser. More...

+ Inheritance diagram for Wikimedia\CSS\Parser\StringDataSource:
+ Collaboration diagram for Wikimedia\CSS\Parser\StringDataSource:

Public Member Functions

 __construct ( $string)
 
 readCharacter ()
 @inheritDoc
 
 putBackCharacter ( $char)
 @inheritDoc
 

Public Attributes

 $pos = 0
 
- Public Attributes inherited from Wikimedia\CSS\Parser\DataSource
const EOF = ''
 

Protected Attributes

 $string
 
 $len = 0
 
 $putBack = []
 

Detailed Description

Read data for the CSS parser.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\CSS\Parser\StringDataSource::__construct (   $string)
Parameters
string$stringInput string. Must be valid UTF-8 with no BOM.

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