League\CommonMark\Cursor::advance PHP Method

advance() public method

Move the cursor forwards
public advance ( )
    public function advance()
    {
        $this->advanceBy(1);
    }

Usage Example

Beispiel #1
0
 /**
  * @param  \League\CommonMark\ContextInterface $context
  * @param  \League\CommonMark\InlineParserContext $inlineContext
  * @return bool
  */
 public function parse(ContextInterface $context, InlineParserContext $inlineContext)
 {
     $this->context = $context;
     $this->inlineContext = $inlineContext;
     $this->cursor = $inlineContext->getCursor();
     $this->originalState = $this->cursor->saveState();
     $this->cursor->advance();
     return $this->parseMediaType();
 }
All Usage Examples Of League\CommonMark\Cursor::advance