Home
last modified time | relevance | path

Searched refs:cursor (Results 251 – 275 of 652) sorted by path

1...<<11121314151617181920>>...27

/plugin/commonmark/vendor/league/commonmark/src/Block/Parser/
H A DThematicBreakParser.php
/plugin/commonmark/vendor/league/commonmark/src/
H A DDocParser.php
/plugin/commonmark/vendor/league/commonmark/src/Extension/Attributes/Node/
H A DAttributes.php51 matchesNextLine(Cursor $cursor) global() argument
58 shouldLastLineBeBlank(Cursor $cursor, int $currentLineNumber) global() argument
/plugin/commonmark/vendor/league/commonmark/src/Extension/Attributes/Parser/
H A DAttributesBlockParser.php
H A DAttributesInlineParser.php33 $cursor = $inlineContext->getCursor();
34 $char = (string) $cursor->peek(-1);
36 $attributes = AttributesHelper::parseAttributes($cursor);
46 $cursor->advanceToNextNonSpaceOrNewline();
/plugin/commonmark/vendor/league/commonmark/src/Extension/Attributes/Util/
H A DAttributesHelper.php32 public static function parseAttributes(Cursor $cursor): array argument
34 $state = $cursor->saveState();
35 $cursor->advanceToNextNonSpaceOrNewline();
38 if ($cursor->getCharacter() !== '{') {
39 $cursor->restoreState($state);
49 $attributeExpression = $cursor->match(self::ATTRIBUTE_LIST);
51 $cursor->restoreState($state);
/plugin/commonmark/vendor/league/commonmark/src/Extension/Autolink/
H A DInlineMentionParser.php
/plugin/commonmark/vendor/league/commonmark/src/Extension/Footnote/Node/
H A DFootnote.php51 matchesNextLine(Cursor $cursor) global() argument
H A DFootnoteContainer.php35 matchesNextLine(Cursor $cursor) global() argument
/plugin/commonmark/vendor/league/commonmark/src/Extension/Footnote/Parser/
H A DAnonymousFootnoteRefParser.php
H A DFootnoteParser.php43 public function tryContinue(Cursor $cursor, BlockContinueParserInterface $activeBlockParser): ?BlockContinue
45 if ($cursor->isBlank()) {
46 return BlockContinue::at($cursor);
49 if ($cursor->isIndented()) {
50 $this->indentation ??= $cursor->getIndent();
51 $cursor->advanceBy($this->indentation, true);
53 return BlockContinue::at($cursor);
26 parse(ContextInterface $context, Cursor $cursor) global() argument
H A DFootnoteRefParser.php
/plugin/commonmark/vendor/league/commonmark/src/Extension/Mention/
H A DMentionParser.php55 $cursor = $inlineContext->getCursor();
58 $previousChar = $cursor->peek(-1);
60 // peek() doesn't modify the cursor, so no need to restore state first
72 $cursor->advanceBy($inlineContext->getFullMatchLength());
/plugin/commonmark/vendor/league/commonmark/src/Extension/SmartPunct/
H A DPunctuationParser.php
H A DQuoteParser.php41 $cursor = $inlineContext->getCursor();
45 $charBefore = $cursor->peek(-1);
50 $cursor->advance();
52 $charAfter = $cursor->getCurrentCharacter();
/plugin/commonmark/vendor/league/commonmark/src/Extension/Table/
H A DTable.php61 matchesNextLine(Cursor $cursor) global() argument
66 handleRemainingContents(ContextInterface $context, Cursor $cursor) global() argument
H A DTableCell.php58 matchesNextLine(Cursor $cursor) global() argument
63 handleRemainingContents(ContextInterface $context, Cursor $cursor) global() argument
H A DTableParser.php83 public function tryContinue(Cursor $cursor, BlockContinueParserInterface $activeBlockParser): ?BlockContinue
85 if (\strpos($cursor->getLine(), '|') === false) {
89 return BlockContinue::at($cursor);
159 $cursor = new Cursor(\trim($line));
161 if ($cursor->getCurrentCharacter() === '|') {
162 $cursor->advanceBy(1);
168 while (! $cursor->isAtEnd()) {
169 switch ($c = $cursor->getCurrentCharacter()) {
171 if ($cursor->peek() === '|') {
176 $cursor
34 parse(ContextInterface $context, Cursor $cursor) global() argument
145 split(Cursor $cursor) global() argument
190 parseColumns(Cursor $cursor) global() argument
[all...]
H A DTableRow.php34 matchesNextLine(Cursor $cursor) global() argument
H A DTableSection.php58 matchesNextLine(Cursor $cursor) global() argument
63 handleRemainingContents(ContextInterface $context, Cursor $cursor) global() argument
/plugin/commonmark/vendor/league/commonmark/src/Extension/TableOfContents/Node/
H A DTableOfContentsPlaceholder.php29 matchesNextLine(Cursor $cursor) global() argument
/plugin/commonmark/vendor/league/commonmark/src/Extension/TableOfContents/
H A DTableOfContentsPlaceholderParser.php42 public function tryContinue(Cursor $cursor, BlockContinueParserInterface $activeBlockParser): ?BlockContinue
53 public function tryStart(Cursor $cursor, MarkdownParserStateInterface $parserState): ?BlockStart
61 if ($cursor->match('/^' . \preg_quote($placeholder, '/') . '$/') === null) {
65 return BlockStart::of(new TableOfContentsPlaceholderParser())->at($cursor);
26 parse(ContextInterface $context, Cursor $cursor) global() argument
/plugin/commonmark/vendor/league/commonmark/src/Extension/TaskList/
H A DTaskListItemMarkerParser.php38 $cursor = $inlineContext->getCursor();
39 $oldState = $cursor->saveState();
41 $cursor->advanceBy(3);
43 if ($cursor->getNextNonSpaceCharacter() === null) {
44 $cursor->restoreState($oldState);
/plugin/commonmark/vendor/league/commonmark/src/Inline/Parser/
H A DAutolinkParser.php
H A DBacktickParser.php

1...<<11121314151617181920>>...27