Contains the swExpressionFunction class to define functions and all its subclasses
File also popluates the global $swExpressionFunctions array (only once for performance)
swExpressionFunction Provides a class to delegate and execute function. Provides a class to compile functions defined in Relation. Returns true if a text matches the hint pattern. Provides a class to access wiki functions. Provides a class to handle case-sensitive regex search Provides a class to handle case-insensitive regex search Provides a class to handle regex replace Provides a class to handle regex replace with a modifier as argument XPAbs, XPAdd, XPAnd, XPCeil, XPComma, XPConcat, XPCos, XPDiv, XPEqN, XPEqS, XPFloor, XPFormat, XPGeN, XPGeS, XPGtN, XPGtS, XPHint, XPIdiv, XPLeS, XPLength, XPLink, XPLower, XPLtN, XPLtS, XPMax, XPMin, XPMod, XPMul, XPNeN, XPNeS, XPNeg, XPNot, XPOr, XPPad, XPPow, XPRegex, XPRegexReplace, XPRegexReplaceMod, XPRegexi, XPReplace, XPRnd, XPRound, XPSQLtoSeconds, XPSecondsToSQL, XPSign, XPSin, XPSoundex, XPSoundexLong, XPSqrt, XPStrip, XPSub, XPSubstr, XPTag, XPTan, XPTrim, XPUpper, XPXor, XPleN, XPurltext, XpExp, XpLn, XpLog, XpResume, XpTemplate, swExpression, swExpressionError, swTemplateParser, swWiki, xpBigramStat, xpCosineSimilarity, xpFileExists, xpJaccardDistance, xpLevenshtein, xpSqlEscape, xpWeightedJaccardDistance swBigramStat, swConvertText15, swNameURL, swNumberformat, swResumeFromText $swExpressionFunctions Short variables: $a, $arg, $b, $c, $d, $eq, $f, $fn, $hor, $i, $il, $j, $k, $key, $lb, $off, $p, $raw, $s, $ti, $u, $v, $w array, class, exception, file, math, mb, preg, str, string, time, variable SQLite3, levenshtein, soundex
$label function label as used in RPN (starting with :)
$arity number of arguments (must be present, because in RPN it is not present any more)Methods
Properties
swExpressionCompiledFunction extends swExpressionFunction
$lines() source text
$compiledlines() rpn representation
$xp internal expression engine
$args() runtime arguments
$offset runtime offset stateMethods
Properties
xpAbs extends swExpressionFunction
Methods
Properties
xpAdd extends swExpressionFunction
Methods
Properties
xpAnd extends swExpressionFunction
Methods
Properties
xpAndRight extends swExpressionFunction
Methods
Properties
xpCeil extends swExpressionFunction
Methods
Properties
xpBigramStat extends swExpressionFunction
Methods
Properties
xpComma extends swExpressionFunction
Nop functionMethods
Properties
xpConcat extends swExpressionFunction
Methods
Properties
xpCos extends swExpressionFunction
Methods
Properties
xpCosineSimilarity extends swExpressionFunction
Methods
Properties
xpDiv extends swExpressionFunction
Methods
Properties
xpEqN extends swExpressionFunction
Methods
Properties
xpEqS extends swExpressionFunction
Methods
Properties
xpFileExists extends swExpressionFunction
Methods
Properties
xpExp extends swExpressionFunction
Methods
Properties
xpFalse extends swExpressionFunction
Methods
Properties
xpFloor extends swExpressionFunction
Methods
Properties
xpFormat extends swExpressionFunction
Methods
Properties
xpGeN extends swExpressionFunction
Methods
Properties
xpGeS extends swExpressionFunction
Methods
Properties
xpGtN extends swExpressionFunction
Methods
Properties
xpGtS extends swExpressionFunction
Methods
Properties
XpHint extends swExpressionFunction
A hint is a combination fof urltext, separated by spaces (AND) and by pipes (OR).
"foo bar" foo AND bar
"foo|bar" foo OR bar
"alice bob/foo" (alice AND bob) OR foo
There can not be nested levels of space and pipesMethods
Properties
xpIdiv extends swExpressionFunction
Methods
Properties
xpJaccardDistance extends swExpressionFunction
Methods
Properties
xpLeN extends swExpressionFunction
Methods
Properties
xpLength extends swExpressionFunction
Methods
Properties
xpLeS extends swExpressionFunction
Methods
Properties
xpLevenshtein extends swExpressionFunction
Methods
Properties
xpLink extends swExpressionFunction
Methods
Properties
xpLn extends swExpressionFunction
Methods
Properties
xpLog extends swExpressionFunction
Methods
Properties
xpLower extends swExpressionFunction
Methods
Properties
xpLtN extends swExpressionFunction
Methods
Properties
xpLtS extends swExpressionFunction
Methods
Properties
xpMax extends swExpressionFunction
Methods
Properties
xpMin extends swExpressionFunction
Methods
Properties
xpMod extends swExpressionFunction
Methods
Properties
xpMul extends swExpressionFunction
Methods
Properties
XpNative extends swExpressionFunction
$nativefunction instance of wiki function class
Only functions with a defined arity can be included
Native function do not handle infinity and undefined
Native function do not expression functionsMethods
Properties
xpNeN extends swExpressionFunction
Methods
Properties
xpNeg extends swExpressionFunction
Methods
Properties
xpNeS extends swExpressionFunction
Methods
Properties
xpNot extends swExpressionFunction
Methods
Properties
xpOr extends swExpressionFunction
Methods
Properties
xpPad extends swExpressionFunction
Methods
Properties
xpPow extends swExpressionFunction
Methods
Properties
xpRegex extends swExpressionFunction
As an alternative for backslash \ the ∫ can be usedMethods
Properties
xpRegexi extends swExpressionFunction
As an alternative for backslash \ the ∫ can be usedMethods
Properties
xpRegexReplace extends swExpressionFunction
As an alternative for backslash \ the ∫ can be usedMethods
Properties
xpRegexReplaceMod extends swExpressionFunction
As an alternative for backslash \ the ∫ can be usedMethods
Properties
xpReplace extends swExpressionFunction
Methods
Properties
xpResume extends swExpressionFunction
Methods
Properties
xpRnd extends swExpressionFunction
Returns a random number between 0 and 999999Methods
Properties
xpRound extends swExpressionFunction
Rounds to integerMethods
Properties
XPSecondsToSql extends swExpressionFunction
Converts unix seconds to SQL date-time stringMethods
Properties
xpSign extends swExpressionFunction
Methods
Properties
xpSin extends swExpressionFunction
Methods
Properties
xpSoundex extends swExpressionFunction
Methods
Properties
xpSoundexLong extends swExpressionFunction
Methods
Properties
xpSqlEscape extends swExpressionFunction
Converts SQL date-time string to unix secondsMethods
Properties
xpSqlToSeconds extends swExpressionFunction
Methods
Properties
xpSqrt extends swExpressionFunction
Methods
Properties
xpStrip extends swExpressionFunction
Methods
Properties
xpSub extends swExpressionFunction
Methods
Properties
xpSubstr extends swExpressionFunction
Methods
Properties
xpTag extends swExpressionFunction
Methods
Properties
xpTan extends swExpressionFunction
Methods
Properties
xpTemplate extends swExpressionFunction
Methods
Properties
xpTrim extends swExpressionFunction
Methods
Properties
xpWeightedJaccardDistance extends swExpressionFunction
Methods
Properties
xpTrue extends swExpressionFunction
Methods
Properties
xpUpper extends swExpressionFunction
Methods
Properties
xpUrlText extends swExpressionFunction
Converts text to urltextMethods
Properties
xpXor extends swExpressionFunction
Methods
Properties
Used elements
Classes
Functions
Globals
Variables
$alist, $alistsum, $alistw, $andfound, $args, $blist, $blistsum, $blistw, $body, $command, $command2, $conditioncount, $dotxx, $dotxy, $dotyy, $dummy, $elem, $elsefound, $fields, $file1, $file2, $found, $hand, $hands, $hands2, $hors, $hors2, $jaccard, $length, $line, $list, $localvalues, $orfound, $result, $score, $source, $stackFeatures
Others