[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/s9e/regexp-builder/src/ -> MetaCharacters.php (summary)

(no description)

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

Defines 1 class

MetaCharacters:: (10 methods):
  __construct()
  add()
  getExpression()
  isChar()
  isQuantifiable()
  replaceMeta()
  computeValue()
  exprIsChar()
  exprIsQuantifiable()
  matchesAny()


Class: MetaCharacters  - X-Ref


__construct(InputInterface $input)   X-Ref

param: InputInterface $input

add(string $char, string $expr)   X-Ref
Add a meta-character to the list

param: string $char Meta-character
param: string $expr Regular expression
return: void

getExpression(int $metaValue)   X-Ref
Get the expression associated with a meta value

param: integer $metaValue
return: string

isChar(int $value)   X-Ref
Return whether a given value represents a single character usable in a character class

param: integer $value
return: bool

isQuantifiable(int $value)   X-Ref
Return whether a given value represents a quantifiable expression

param: integer $value
return: bool

replaceMeta(array $strings)   X-Ref
Replace values from meta-characters in a list of strings with their meta value

param: array[] $strings
return: array[]

computeValue(string $expr)   X-Ref
Compute and return a value for given expression

Values are meant to be a unique negative integer. The least significant bits are used to
store the expression's properties

param: string  $expr Regular expression
return: integer

exprIsChar(string $expr)   X-Ref
Test whether given expression represents a single character usable in a character class

param: string $expr
return: bool

exprIsQuantifiable(string $expr)   X-Ref
Test whether given expression is quantifiable

param: string $expr
return: bool

matchesAny(string $expr, array $regexps)   X-Ref
Test whether given expression matches any of the given regexps

param: string   $expr
param: string[] $regexps
return: bool



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