Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403]

(no description)

File Size: 310 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ParserState:: (23 methods):
  __construct()
  setCharset()
  getCharset()
  currentLine()
  getSettings()
  parseIdentifier()
  parseCharacter()
  consumeWhiteSpace()
  comes()
  peek()
  consume()
  consumeExpression()
  consumeComment()
  isEnd()
  consumeUntil()
  inputLeft()
  streql()
  backtrack()
  strlen()
  substr()
  strtolower()
  strsplit()
  strpos()


Class: ParserState  - X-Ref

__construct($sText, Settings $oParserSettings, $iLineNo = 1)   X-Ref
No description

setCharset($sCharset)   X-Ref
No description

getCharset()   X-Ref
No description

currentLine()   X-Ref
No description

getSettings()   X-Ref
No description

parseIdentifier($bIgnoreCase = true)   X-Ref
No description

parseCharacter($bIsForIdentifier)   X-Ref
No description

consumeWhiteSpace()   X-Ref
No description

comes($sString, $bCaseInsensitive = false)   X-Ref
No description

peek($iLength = 1, $iOffset = 0)   X-Ref
No description

consume($mValue = 1)   X-Ref
No description

consumeExpression($mExpression, $iMaxLength = null)   X-Ref
No description

consumeComment()   X-Ref

return: false|Comment

isEnd()   X-Ref
No description

consumeUntil($aEnd, $bIncludeEnd = false, $consumeEnd = false, array &$comments = array()   X-Ref
No description

inputLeft()   X-Ref
No description

streql($sString1, $sString2, $bCaseInsensitive = true)   X-Ref
No description

backtrack($iAmount)   X-Ref
No description

strlen($sString)   X-Ref
No description

substr($iStart, $iLength)   X-Ref
No description

strtolower($sString)   X-Ref
No description

strsplit($sString)   X-Ref
No description

strpos($sString, $sNeedle, $iOffset)   X-Ref
No description