Parser
class Parser extends ParserBase
Properties
protected array | $config | from ParserBase | |
protected Parser | $parser | from ParserBase | |
protected string | $shortnameRegexp | ||
protected string | $unicodeRegexp |
Methods
void
parse(string $text, array $matches)
No description
void
addTag(int $tagPos, int $tagLen, string $hex)
Add an emoji tag for given sequence
string
getHexSequence(string $str)
Get the sequence of Unicode codepoints that corresponds to given emoji
void
parseCustomAliases(string $text)
Parse custom aliases in given text
void
parseShortnames(string $text)
Parse shortnames in given text
void
parseUnicode(string $text)
Parse Unicode emoji in given text
Details
in
ParserBase at line 30
final
__construct(Parser $parser, array $config)
Constructor
in
ParserBase at line 43
protected void
setUp()
Plugin's setup
at line 27
void
parse(string $text, array $matches)
No description
at line 42
protected void
addTag(int $tagPos, int $tagLen, string $hex)
Add an emoji tag for given sequence
at line 65
protected string
getHexSequence(string $str)
Get the sequence of Unicode codepoints that corresponds to given emoji
at line 96
protected void
parseCustomAliases(string $text)
Parse custom aliases in given text
at line 130
protected void
parseShortnames(string $text)
Parse shortnames in given text
at line 160
protected void
parseUnicode(string $text)
Parse Unicode emoji in given text