[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Plugins/Litedown/Parser/ -> ParsedText.php (summary)

(no description)

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

Defines 1 class

ParsedText:: (12 methods):
  __construct()
  __toString()
  charAt()
  decode()
  indexOf()
  isAfterWhitespace()
  isAlnum()
  isBeforeWhitespace()
  isSurroundedByAlnum()
  isWhitespace()
  markBoundary()
  overwrite()


Class: ParsedText  - X-Ref


__construct($text)   X-Ref

param: string $text Original text

__toString()   X-Ref

return: string

charAt($pos)   X-Ref
Return the character at given position

param: integer $pos
return: string

decode($str)   X-Ref
Decode a chunk of encoded text to be used as an attribute value

Decodes escaped literals and removes slashes and 0x1A characters

param: string $str Encoded text
return: string      Decoded text

indexOf($str, $pos = 0)   X-Ref
Find the first occurence of given substring starting at given position

param: string       $str
param: integer      $pos
return: bool|integer

isAfterWhitespace($pos)   X-Ref
Test whether given position is preceded by whitespace

param: integer $pos
return: bool

isAlnum($chr)   X-Ref
Test whether given character is alphanumeric

param: string $chr
return: bool

isBeforeWhitespace($pos)   X-Ref
Test whether given position is followed by whitespace

param: integer $pos
return: bool

isSurroundedByAlnum($pos, $len)   X-Ref
Test whether a length of text is surrounded by alphanumeric characters

param: integer $pos Start of the text
param: integer $len Length of the text
return: bool

isWhitespace($chr)   X-Ref
Test whether given character is an ASCII whitespace character

NOTE: newlines are normalized to LF before parsing so we don't have to check for CR

param: string $chr
return: bool

markBoundary($pos)   X-Ref
Mark the boundary of a block in the original text

param: integer $pos
return: void

overwrite($pos, $len)   X-Ref
Overwrite part of the text with substitution characters ^Z (0x1A)

param: integer $pos Start of the range
param: integer $len Length of text to overwrite
return: void



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