css-sanitizer
Classes to parse and sanitize CSS
Wikimedia\CSS\Parser\Tokenizer Interface Reference

Tokenizer interface. More...

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

Public Member Functions

 getParseErrors ()
 Return all parse errors seen so far. More...
 
 clearParseErrors ()
 Clear parse errors.
 
 consumeToken ()
 Read a token from the data source. More...
 

Detailed Description

Tokenizer interface.

Member Function Documentation

◆ consumeToken()

Wikimedia\CSS\Parser\Tokenizer::consumeToken ( )

Read a token from the data source.

Returns
Token

Implemented in Wikimedia\CSS\Parser\TokenListTokenizer, and Wikimedia\CSS\Parser\DataSourceTokenizer.

◆ getParseErrors()

Wikimedia\CSS\Parser\Tokenizer::getParseErrors ( )

Return all parse errors seen so far.

Returns
array Array of [ string $tag, int $line, int $pos, ... ]

Implemented in Wikimedia\CSS\Parser\TokenListTokenizer, and Wikimedia\CSS\Parser\DataSourceTokenizer.


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