Home
last modified time | relevance | path

Searched refs:RegexHelper (Results 1 – 24 of 24) sorted by relevance

/plugin/commonmark/vendor/league/commonmark/src/Util/
H A DLinkParserHelper.php30 if ($res = $cursor->match(RegexHelper::REGEX_LINK_DESTINATION_BRACES)) {
33 RegexHelper::unescape(\substr($res, 1, -1))
47 RegexHelper::unescape($destination)
76 if ($title = $cursor->match('/' . RegexHelper::PARTIAL_LINK_TITLE . '/')) {
78 return RegexHelper::unescape(\substr($title, 1, -1));
91 … if ($c === '\\' && $cursor->peek() !== null && RegexHelper::isEscapable($cursor->peek())) {
103 } elseif (\preg_match(RegexHelper::REGEX_WHITESPACE_CHAR, $c)) {
H A DRegexHelper.php22 final class RegexHelper class
/plugin/commonmark/vendor/league/commonmark/src/Block/Parser/
H A DThematicBreakParser.php20 use League\CommonMark\Util\RegexHelper; alias
30 …$match = RegexHelper::matchAt(RegexHelper::REGEX_THEMATIC_BREAK, $cursor->getLine(), $cursor->getN…
H A DHtmlBlockParser.php21 use League\CommonMark\Util\RegexHelper; alias
41 $match = RegexHelper::matchAt(
42 RegexHelper::getHtmlBlockOpenRegex($blockType),
H A DListParser.php25 use League\CommonMark\Util\RegexHelper; alias
62 …} elseif (($matches = RegexHelper::matchFirst('/^(\d{1,9})([.)])/', $rest)) && (!($context->getCon…
82 …if ($container instanceof Paragraph && !RegexHelper::matchAt(RegexHelper::REGEX_NON_SPACE, $rest, …
H A DATXHeadingParser.php20 use League\CommonMark\Util\RegexHelper; alias
30 …$match = RegexHelper::matchFirst('/^#{1,6}(?:[ \t]+|$)/', $cursor->getLine(), $cursor->getNextNonS…
H A DSetExtHeadingParser.php22 use League\CommonMark\Util\RegexHelper; alias
36 …$match = RegexHelper::matchFirst('/^(?:=+|-+)[ \t]*$/', $cursor->getLine(), $cursor->getNextNonSpa…
/plugin/commonmark/vendor/league/commonmark/src/
H A DInlineParserEngine.php24 use League\CommonMark\Util\RegexHelper; alias
173 $afterIsWhitespace = \preg_match(RegexHelper::REGEX_UNICODE_WHITESPACE_CHAR, $charAfter);
174 $afterIsPunctuation = \preg_match(RegexHelper::REGEX_PUNCTUATION, $charAfter);
175 $beforeIsWhitespace = \preg_match(RegexHelper::REGEX_UNICODE_WHITESPACE_CHAR, $charBefore);
176 $beforeIsPunctuation = \preg_match(RegexHelper::REGEX_PUNCTUATION, $charBefore);
/plugin/commonmark/vendor/league/commonmark/src/Extension/SmartPunct/
H A DQuoteParser.php20 use League\CommonMark\Util\RegexHelper; alias
88 $afterIsPunctuation = preg_match(RegexHelper::REGEX_PUNCTUATION, $charAfter);
90 $beforeIsPunctuation = preg_match(RegexHelper::REGEX_PUNCTUATION, $charBefore);
/plugin/commonmark/vendor/league/commonmark/src/Extension/Attributes/Util/
H A DAttributesHelper.php20 use League\CommonMark\Util\RegexHelper; alias
48 …$regex = '/^\s*([.#][_a-z0-9-]+|' . RegexHelper::PARTIAL_ATTRIBUTENAME . RegexHelper::PARTIAL_ATTR…
/plugin/commonmark/vendor/league/commonmark/src/Inline/Parser/
H A DHtmlInlineParser.php19 use League\CommonMark\Util\RegexHelper; alias
30 if ($m = $inlineContext->getCursor()->match('/^' . RegexHelper::PARTIAL_HTMLTAG . '/i')) {
H A DEntityParser.php20 use League\CommonMark\Util\RegexHelper; alias
31 if ($m = $inlineContext->getCursor()->match('/^' . RegexHelper::PARTIAL_ENTITY . '/i')) {
H A DEscapableParser.php20 use League\CommonMark\Util\RegexHelper; alias
39 } elseif ($nextChar !== null && RegexHelper::isEscapable($nextChar)) {
H A DCloseBracketParser.php29 use League\CommonMark\Util\RegexHelper; alias
153 if (\preg_match(RegexHelper::REGEX_WHITESPACE_CHAR, $cursor->peek(-1))) {
/plugin/commonmark/vendor/league/commonmark/src/Block/Element/
H A DFencedCode.php19 use League\CommonMark\Util\RegexHelper; alias
169 $this->info = RegexHelper::unescape(\trim($firstLine));
185 …$match = RegexHelper::matchFirst('/^(?:`{3,}|~{3,})(?= *$)/', $cursor->getLine(), $cursor->getNext…
H A DHtmlBlock.php19 use League\CommonMark\Util\RegexHelper; alias
99 if ($cursor->match(RegexHelper::getHtmlBlockCloseRegex($this->type)) !== null) {
/plugin/commonmark/src/Dokuwiki/Plugin/Commonmark/Extension/Renderer/Inline/
H A DLinkRenderer.php24 use League\CommonMark\Util\RegexHelper; alias
48 if (!($forbidUnsafeLinks && RegexHelper::isLinkPotentiallyUnsafe($inline->getUrl()))) {
H A DImageRenderer.php24 use League\CommonMark\Util\RegexHelper; alias
48 if ($forbidUnsafeLinks && RegexHelper::isLinkPotentiallyUnsafe($inline->getUrl())) {
/plugin/commonmark/vendor/league/commonmark/src/Extension/Footnote/Parser/
H A DFootnoteParser.php22 use League\CommonMark\Util\RegexHelper; alias
32 $match = RegexHelper::matchFirst(
/plugin/commonmark/vendor/league/commonmark/src/Inline/Renderer/
H A DImageRenderer.php23 use League\CommonMark\Util\RegexHelper; alias
47 if ($forbidUnsafeLinks && RegexHelper::isLinkPotentiallyUnsafe($inline->getUrl())) {
H A DLinkRenderer.php23 use League\CommonMark\Util\RegexHelper; alias
47 if (!($forbidUnsafeLinks && RegexHelper::isLinkPotentiallyUnsafe($inline->getUrl()))) {
/plugin/commonmark/vendor/league/commonmark/
H A D.phpstorm.meta.php23 …expectedArguments(\League\CommonMark\Util\RegexHelper::getHtmlBlockOpenRegex(), 0, argumentsSet('l…
24 …expectedArguments(\League\CommonMark\Util\RegexHelper::getHtmlBlockCloseRegex(), 0, argumentsSet('…
H A DCHANGELOG-0.x.md78 - `RegexHelper::$instance`
79 - `RegexHelper::getInstance()`
80 - `RegexHelper::getPartialRegex()`
81 - `RegexHelper::getHtmlTagRegex()`
82 - `RegexHelper::getLinkTitleRegex()`
84 - `RegexHelper::getThematicBreakRegex()`
174 - Added new `RegexHelper::isEscapable()` method
202 - `RegexHelper` is now `final`.
225 - `RegexHelper::REGEX_UNICODE_WHITESPACE`
226 - `RegexHelper::getLinkDestinationRegex()`
[all …]
H A DCHANGELOG.md55 - Added new `RegexHelper::matchFirst()` method
70 - Deprecated `RegexHelper::matchAll()`; use `RegexHelper::matchFirst()` instead
402 - All deprecated `RegexHelper` constants