css-sanitizer
Classes to parse and sanitize CSS
Loading...
Searching...
No Matches
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.
 
 clearParseErrors ()
 Clear parse errors.
 
 consumeToken ()
 Read a token from the data source.
 

Detailed Description

Tokenizer interface.

Member Function Documentation

◆ clearParseErrors()

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

◆ consumeToken()

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

Read a token from the data source.

Returns
Token

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

◆ 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\DataSourceTokenizer, and Wikimedia\CSS\Parser\TokenListTokenizer.


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