MediaWiki
master
|
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... | |
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.