[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

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

(no description)

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

Defines 23 functions

  addLine()
  addTableBody()
  addTableCell()
  addTableHead()
  addTableRow()
  captureTables()
  createBodyTags()
  createCellTags()
  createHeadTags()
  createIgnoreTag()
  createRowTags()
  createSeparatorTag()
  createTableTags()
  endTable()
  hasValidTable()
  isValidSeparator()
  overwriteBlockquoteCallback()
  overwriteEscapes()
  overwriteInlineCodeCallback()
  overwriteMarkdown()
  parseColumnAlignments()
  processCurrentTable()
  processTables()

Functions
Functions that are not part of a class:

addLine(line)   X-Ref
Add current line to a table

param: {string} line Line of text

addTableBody()   X-Ref
Process current table's body


addTableCell(tagName, align, content)   X-Ref
Add a cell's tags for current table at current position

param: {string} tagName Either TD or TH
param: {string} align   Either "left", "center", "right" or ""
param: {string} content Cell's text content

addTableHead()   X-Ref
Process current table's head


addTableRow(tagName, row)   X-Ref
Process given table row

param: {string}  tagName Either TD or TH
param: {!Object} row

captureTables()   X-Ref
Capture all pipe tables in current text


createBodyTags(startPos, endPos)   X-Ref
Create a pair of TBODY tags for given text span

param: {number} startPos
param: {number} endPos

createCellTags(tagName, startPos, endPos, align)   X-Ref
Create a pair of TD or TH tags for given text span

param: {string} tagName  Either TD or TH
param: {number} startPos
param: {number} endPos
param: {string} align    Either "left", "center", "right" or ""

createHeadTags(startPos, endPos)   X-Ref
Create a pair of THEAD tags for given text span

param: {number} startPos
param: {number} endPos

createIgnoreTag(pos, len)   X-Ref
Create an ignore tag for given text span

param: {number} pos
param: {number} len

createRowTags(startPos, endPos)   X-Ref
Create a pair of TR tags for given text span

param: {number} startPos
param: {number} endPos

createSeparatorTag(row)   X-Ref
Create an ignore tag for given separator row

param: {!Object} row

createTableTags(startPos, endPos)   X-Ref
Create a pair of TABLE tags for given text span

param: {number} startPos
param: {number} endPos

endTable()   X-Ref
End current buffered table


hasValidTable()   X-Ref
Test whether a valid table is currently buffered

return: {boolean}

isValidSeparator(line)   X-Ref
Test whether given line is a valid separator

param: {string}  line
return: {boolean}

overwriteBlockquoteCallback(str)   X-Ref
Overwrite right angle brackets in given match

param: {string} str
return: {string}

overwriteEscapes()   X-Ref
Overwrite escape sequences in current text


overwriteInlineCodeCallback(str)   X-Ref
Overwrite backticks in given match

param: {string} str
return: {string}

overwriteMarkdown()   X-Ref
Overwrite Markdown-style markup in current text


parseColumnAlignments(line)   X-Ref
Parse and return column alignments in given separator line

param: {string} line
return: {!Array<string>}

processCurrentTable()   X-Ref
Process current table declaration


processTables()   X-Ref
Process all the captured tables




Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1