MediaWiki  master
MediaWiki\Rest\HeaderParser\HeaderParserBase Class Reference
Inheritance diagram for MediaWiki\Rest\HeaderParser\HeaderParserBase:

Protected Member Functions

 assertEnd ()
 If the position is not at the end of the input string, raise an error, complaining of trailing characters. More...
 
 consumeFixedDigits ( $numDigits)
 Consume a specified number of digits, or throw an exception. More...
 
 consumeString ( $s)
 Consume a specified string, or throw an exception. More...
 
 error ( $message)
 Throw an exception to indicate a parse error. More...
 
 setInput ( $input)
 Set the input, and derived convenience properties. More...
 
 skipWhitespace ()
 Skip whitespace at the input position (OWS) More...
 

Protected Attributes

string $input
 The input string being processed. More...
 
int $inputLength
 The length of $input. More...
 
int $pos
 The position within $input. More...
 

Detailed Description

Definition at line 8 of file HeaderParserBase.php.

Member Function Documentation

◆ assertEnd()

MediaWiki\Rest\HeaderParser\HeaderParserBase::assertEnd ( )
protected

If the position is not at the end of the input string, raise an error, complaining of trailing characters.

Exceptions
HeaderParserError

Definition at line 91 of file HeaderParserBase.php.

References MediaWiki\Rest\HeaderParser\HeaderParserBase\error().

Referenced by MediaWiki\Rest\HeaderParser\HttpDate\execute(), MediaWiki\Rest\HeaderParser\IfNoneMatch\parseETag(), and MediaWiki\Rest\HeaderParser\IfNoneMatch\parseHeader().

◆ consumeFixedDigits()

MediaWiki\Rest\HeaderParser\HeaderParserBase::consumeFixedDigits (   $numDigits)
protected

◆ consumeString()

◆ error()

◆ setInput()

MediaWiki\Rest\HeaderParser\HeaderParserBase::setInput (   $input)
protected

◆ skipWhitespace()

MediaWiki\Rest\HeaderParser\HeaderParserBase::skipWhitespace ( )
protected

Skip whitespace at the input position (OWS)

Definition at line 55 of file HeaderParserBase.php.

Referenced by MediaWiki\Rest\HeaderParser\IfNoneMatch\consumeTagList().

Member Data Documentation

◆ $input

string MediaWiki\Rest\HeaderParser\HeaderParserBase::$input
protected

◆ $inputLength

int MediaWiki\Rest\HeaderParser\HeaderParserBase::$inputLength
protected

The length of $input.

Definition at line 22 of file HeaderParserBase.php.

◆ $pos

int MediaWiki\Rest\HeaderParser\HeaderParserBase::$pos
protected

The position within $input.

Definition at line 17 of file HeaderParserBase.php.


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