League\CommonMark\InlineParserEngine::parseCharacter PHP Method

parseCharacter() protected method

protected parseCharacter ( string $character, InlineParserContext $inlineParserContext ) : boolean
$character string
$inlineParserContext InlineParserContext
return boolean Whether we successfully parsed a character at that position
    protected function parseCharacter($character, InlineParserContext $inlineParserContext)
    {
        $matchingParsers = $this->environment->getInlineParsersForCharacter($character);
        if (empty($matchingParsers)) {
            return false;
        }
        foreach ($matchingParsers as $parser) {
            if ($parser->parse($inlineParserContext)) {
                return true;
            }
        }
        return false;
    }