EmphStrongDelimiterParser

class EmphStrongDelimiterParser : DelimiterParser

Types

Companion
Link copied to clipboard
common
object Companion

Functions

canOpenClose
Link copied to clipboard
common
open fun canOpenClose(tokens: TokensCache, left: TokensCache.Iterator, right: TokensCache.Iterator, canSplitText: Boolean): <ERROR CLASS><Boolean, Boolean>
Checks if current token can open or close emphasis based on the current delimiter run.
isLeftFlankingRun
Link copied to clipboard
common
open fun isLeftFlankingRun(leftIt: TokensCache.Iterator, rightIt: TokensCache.Iterator): Boolean
isPunctuation
Link copied to clipboard
common
open fun isPunctuation(info: TokensCache.Iterator, lookup: Int): Boolean
isRightFlankingRun
Link copied to clipboard
common
open fun isRightFlankingRun(tokens: TokensCache, leftIt: TokensCache.Iterator, rightIt: TokensCache.Iterator): Boolean
isWhitespace
Link copied to clipboard
common
open fun isWhitespace(info: TokensCache.Iterator, lookup: Int): Boolean
process
Link copied to clipboard
common
open override fun process(tokens: TokensCache, iterator: TokensCache.Iterator, delimiters: MutableList<DelimiterParser.Info>, result: SequentialParser.ParsingResultBuilder)
Receives a list of delimiters collected by scan (contains tokens from all parsers) and creates actual tree nodes from them.
scan
Link copied to clipboard
common
open override fun scan(tokens: TokensCache, iterator: TokensCache.Iterator, delimiters: MutableList<DelimiterParser.Info>): Int
Finds all tokens that open or close element represented by this parser.