Documentation

QuoteParser
in package
implements InlineParserInterface

Interfaces, Classes and Traits

InlineParserInterface

Table of Contents

DOUBLE_QUOTES  = [LeagueCommonMarkExtensionSmartPunctQuote::DOUBLE_QUOTE, LeagueCommonMarkExtensionSmartPunctQuote::DOUBLE_QUOTE_OPENER, LeagueCommonMarkExtensionSmartPunctQuote::DOUBLE_QUOTE_CLOSER]
SINGLE_QUOTES  = [LeagueCommonMarkExtensionSmartPunctQuote::SINGLE_QUOTE, LeagueCommonMarkExtensionSmartPunctQuote::SINGLE_QUOTE_OPENER, LeagueCommonMarkExtensionSmartPunctQuote::SINGLE_QUOTE_CLOSER]
getCharacters()  : array<string|int, string>
parse()  : bool
Normalizes any quote characters found and manually adds them to the delimiter stack
determineFlanking()  : array<string|int, bool>
getNormalizedQuoteCharacter()  : string

Constants

DOUBLE_QUOTES

public mixed DOUBLE_QUOTES = [LeagueCommonMarkExtensionSmartPunctQuote::DOUBLE_QUOTE, LeagueCommonMarkExtensionSmartPunctQuote::DOUBLE_QUOTE_OPENER, LeagueCommonMarkExtensionSmartPunctQuote::DOUBLE_QUOTE_CLOSER]

SINGLE_QUOTES

public mixed SINGLE_QUOTES = [LeagueCommonMarkExtensionSmartPunctQuote::SINGLE_QUOTE, LeagueCommonMarkExtensionSmartPunctQuote::SINGLE_QUOTE_OPENER, LeagueCommonMarkExtensionSmartPunctQuote::SINGLE_QUOTE_CLOSER]

Methods

getCharacters()

public getCharacters() : array<string|int, string>
Return values
array<string|int, string>

determineFlanking()

private determineFlanking(string $charBefore, string $charAfter) : array<string|int, bool>
Parameters
$charBefore : string
$charAfter : string
Return values
array<string|int, bool>

getNormalizedQuoteCharacter()

private getNormalizedQuoteCharacter(string $character) : string
Parameters
$character : string
Return values
string

Search results