Documentation du code de SPIP et de ses plugins

TextWheel pour SPIP

TextWheelDebug extends TextWheel
in package

Table of Contents

Properties

$total  : mixed
$compiled  : mixed
$ruleset  : mixed
$subwheel  : mixed
$t  : mixed
$tnu  : mixed
$tu  : mixed
$u  : mixed
$w  : mixed

Methods

__construct()  : mixed
Constructor
compile()  : mixed
getSubWheel()  : TextWheel
Get an internal global subwheel read acces for annymous function only
outputDebug()  : mixed
Ouputs data stored for profiling/debuging purposes
outputTotal()  : mixed
setRuleSet()  : mixed
Set RuleSet
text()  : string
Apply all rules of RuleSet to a text
apply()  : mixed
Apply a rule to a text
createSubWheel()  : TextWheel
Create SubWheel (can be overriden in debug class)
initRule()  : mixed
Initializing a rule a first call including file, creating function or wheel optimizing tests
replace_all()  : mixed
Static replacement of All text
replace_all_cb()  : mixed
Call back replacement of All text
replace_identity()  : mixed
No Replacement function fall back in case of unknown method for replacing should be called max once per rule
replace_preg()  : mixed
Static Preg replacement
replace_preg_cb()  : mixed
Callback Preg replacement
replace_split()  : mixed
Static split replacement : invalid
replace_split_cb()  : mixed
Callback split replacement
replace_str()  : mixed
Static string replacement
replace_str_cb()  : mixed
Callback string replacement
replace_strtr()  : mixed
Fast Static string replacement one char to one char
ruleCompiledEntryName()  : string
timer()  : int
Timer for profiling
export()  : mixed

Properties

Methods

compile()

public compile([mixed $b = null ]) : mixed
Parameters
$b : mixed = null

getSubWheel()

Get an internal global subwheel read acces for annymous function only

public static & getSubWheel(int $n) : TextWheel
Parameters
$n : int
Return values
TextWheel

outputDebug()

Ouputs data stored for profiling/debuging purposes

public static outputDebug() : mixed

outputTotal()

public static outputTotal(mixed $liste[, mixed $profondeur = 0 ]) : mixed
Parameters
$liste : mixed
$profondeur : mixed = 0

text()

Apply all rules of RuleSet to a text

public text(string $t) : string
Parameters
$t : string
Return values
string

apply()

Apply a rule to a text

protected apply(TextWheelRule &$rule, string &$t[, int &$count = null ]) : mixed
Parameters
$rule : TextWheelRule
$t : string
$count : int = null

createSubWheel()

Create SubWheel (can be overriden in debug class)

protected & createSubWheel(TextWheelRuleset &$rules) : TextWheel
Parameters
$rules : TextWheelRuleset
Return values
TextWheel

initRule()

Initializing a rule a first call including file, creating function or wheel optimizing tests

protected initRule(TextWheelRule &$rule) : mixed
Parameters
$rule : TextWheelRule

replace_all()

Static replacement of All text

protected static replace_all(mixed &$match, mixed &$replace, string &$t, int &$count) : mixed
Parameters
$match : mixed
$replace : mixed
$t : string
$count : int

replace_all_cb()

Call back replacement of All text

protected static replace_all_cb(mixed &$match, mixed &$replace, string &$t, int &$count) : mixed
Parameters
$match : mixed
$replace : mixed
$t : string
$count : int

replace_identity()

No Replacement function fall back in case of unknown method for replacing should be called max once per rule

protected static replace_identity(mixed &$match, mixed &$replace, string &$t, int &$count) : mixed
Parameters
$match : mixed
$replace : mixed
$t : string
$count : int

replace_preg()

Static Preg replacement

protected static replace_preg(mixed &$match, mixed &$replace, string &$t, int &$count) : mixed
Parameters
$match : mixed
$replace : mixed
$t : string
$count : int
Tags
throws
Exception

replace_preg_cb()

Callback Preg replacement

protected static replace_preg_cb(mixed &$match, mixed &$replace, string &$t, int &$count) : mixed
Parameters
$match : mixed
$replace : mixed
$t : string
$count : int
Tags
throws
Exception

replace_split()

Static split replacement : invalid

protected static replace_split(mixed &$match, mixed &$replace, string &$t, int &$count) : mixed
Parameters
$match : mixed
$replace : mixed
$t : string
$count : int

replace_split_cb()

Callback split replacement

protected static replace_split_cb(array<string|int, mixed> &$match, mixed &$replace, string &$t, int &$count) : mixed
Parameters
$match : array<string|int, mixed>
$replace : mixed
$t : string
$count : int

replace_str()

Static string replacement

protected static replace_str(mixed &$match, mixed &$replace, string &$t, int &$count) : mixed
Parameters
$match : mixed
$replace : mixed
$t : string
$count : int

replace_str_cb()

Callback string replacement

protected static replace_str_cb(mixed &$match, mixed &$replace, string &$t, int &$count) : mixed
Parameters
$match : mixed
$replace : mixed
$t : string
$count : int

replace_strtr()

Fast Static string replacement one char to one char

protected static replace_strtr(mixed &$match, mixed &$replace, string &$t, int &$count) : mixed
Parameters
$match : mixed
$replace : mixed
$t : string
$count : int

ruleCompiledEntryName()

protected ruleCompiledEntryName( $replace) : string
Parameters
$replace :
Return values
string

timer()

Timer for profiling

protected timer([string $t = 'rien' ][, bool $raw = false ]) : int
Parameters
$t : string = 'rien'
$raw : bool = false
Tags
staticvar

int $time

Return values
int

export()

private static export(mixed $x) : mixed
Parameters
$x : mixed

        
On this page

Search results