[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Plugins/Emoji/ -> Parser.js (summary)

(no description)

File Size: 138 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions

  addTag()
  getHexSequence()
  parseCustomAliases()
  parseShortnames()
  parseUnicode()

Functions
Functions that are not part of a class:

addTag(tagPos, tagLen, hex)   X-Ref
Add an emoji tag for given sequence

param: {number} tagPos Position of the tag in the original text
param: {number} tagLen Length of text consumed by the tag
param: {string} hex    Fully-qualified sequence of codepoints in hex

getHexSequence(str)   X-Ref
Get the sequence of Unicode codepoints that corresponds to given emoji

param: {string} str UTF-8 emoji
return: {string}     Codepoint sequence, e.g. "0023-20e3"

parseCustomAliases(text)   X-Ref
Parse custom aliases in given text

param: {string} text Original text

parseShortnames(text)   X-Ref
Parse shortnames in given text

param: {string} text Original text

parseUnicode(text)   X-Ref
Parse Unicode emoji in given text

param: {string} text Original text



Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1