EmojiParser Class

The inline parser used for emojis.

public class EmojiParser : InlineParser, IPostInlineProcessor

See also

Inheritance
InlineParser EmojiParser
Implements

Constructors

NameDescription
EmojiParser(EmojiMapping)Initializes a new instance of the EmojiParser class.

EmojiParser(EmojiMapping)

EmojiParser.cs

Initializes a new instance of the EmojiParser class.

public EmojiParser(EmojiMapping emojiMapping)

Parameters

emojiMapping EmojiMapping

Methods

NameDescription
Match(InlineProcessor, StringSlice)Attempts to match the parser at the current position.
PostProcess(InlineProcessor, Inline?, Inline?, int, bool)Converts deferred emoji candidates whose trailing delimiters were not used by emphasis.

Match(InlineProcessor, StringSlice)

EmojiParser.cs

Attempts to match the parser at the current position.

public override bool Match(InlineProcessor processor, ref StringSlice slice)

Parameters

processor InlineProcessor
slice StringSlice

Returns

bool

PostProcess(InlineProcessor, Inline?, Inline?, int, bool)

EmojiParser.cs

Converts deferred emoji candidates whose trailing delimiters were not used by emphasis.

public bool PostProcess(InlineProcessor state, Inline? root, Inline? lastChild, int postInlineProcessorIndex, bool isFinalProcessing)

Parameters

state InlineProcessor
root Inline?
lastChild Inline?
postInlineProcessorIndex int
isFinalProcessing bool

Returns

bool