MediaWiki REL1_40
|
Inherited by MediaWiki\Rest\HeaderParser\HttpDate, MediaWiki\Rest\HeaderParser\IfNoneMatch, and MediaWiki\Rest\HeaderParser\Origin.
Protected Member Functions | |
assertEnd () | |
If the position is not at the end of the input string, raise an error, complaining of trailing characters. | |
consumeFixedDigits ( $numDigits) | |
Consume a specified number of digits, or throw an exception. | |
consumeString ( $s) | |
Consume a specified string, or throw an exception. | |
error ( $message) | |
Throw an exception to indicate a parse error. | |
setInput ( $input) | |
Set the input, and derived convenience properties. | |
skipWhitespace () | |
Skip whitespace at the input position (OWS) | |
Protected Attributes | |
string | $input |
The input string being processed. | |
int | $inputLength |
The length of $input. | |
int | $pos |
The position within $input. | |
Definition at line 8 of file HeaderParserBase.php.
|
protected |
If the position is not at the end of the input string, raise an error, complaining of trailing characters.
HeaderParserError |
Definition at line 92 of file HeaderParserBase.php.
References MediaWiki\Rest\HeaderParser\HeaderParserBase\error().
Referenced by MediaWiki\Rest\HeaderParser\IfNoneMatch\parseETag().
|
protected |
Consume a specified number of digits, or throw an exception.
int | $numDigits |
HeaderParserError |
Definition at line 77 of file HeaderParserBase.php.
References MediaWiki\Rest\HeaderParser\HeaderParserBase\error().
|
protected |
Consume a specified string, or throw an exception.
string | $s |
HeaderParserError |
Definition at line 41 of file HeaderParserBase.php.
References MediaWiki\Rest\HeaderParser\HeaderParserBase\error().
|
protected |
Throw an exception to indicate a parse error.
string | $message |
HeaderParserError |
Definition at line 66 of file HeaderParserBase.php.
Referenced by MediaWiki\Rest\HeaderParser\HeaderParserBase\assertEnd(), MediaWiki\Rest\HeaderParser\HeaderParserBase\consumeFixedDigits(), and MediaWiki\Rest\HeaderParser\HeaderParserBase\consumeString().
|
protected |
Set the input, and derived convenience properties.
string | $input |
Definition at line 29 of file HeaderParserBase.php.
References MediaWiki\Rest\HeaderParser\HeaderParserBase\$input.
Referenced by MediaWiki\Rest\HeaderParser\IfNoneMatch\parseETag().
|
protected |
Skip whitespace at the input position (OWS)
Definition at line 55 of file HeaderParserBase.php.
|
protected |
The input string being processed.
Definition at line 12 of file HeaderParserBase.php.
Referenced by MediaWiki\Rest\HeaderParser\HeaderParserBase\setInput().
|
protected |
The length of $input.
Definition at line 22 of file HeaderParserBase.php.
|
protected |
The position within $input.
Definition at line 17 of file HeaderParserBase.php.