summaryrefslogtreecommitdiff
path: root/src/core/wee-eval.c
AgeCommit message (Collapse)Author
2017-10-17core: allow floating point and hexadecimal numbers in comparison of ↵Sébastien Helleu
evaluated values
2017-08-12core: fix cast of time_t (to "long long" instead of "long") (closes #1051)Sébastien Helleu
2017-05-28core: remove unused variable "index" in function eval_hdata_get_valueSébastien Helleu
2017-05-20core: allow index for hdata arrays in evaluation of expressionsSébastien Helleu
2017-04-29core: add wildcard matching operators to eval (closes #608)Simmo Saan
2017-04-25core: fix check of condition in ${if:...} (evaluated strings)Sébastien Helleu
2017-04-25core: add new cut formats in function commentSébastien Helleu
2017-04-24core: add a way to count the suffix length in max chars displayed in cut of ↵Sébastien Helleu
string ("cut:" and "cutscr:") (closes #963) The format to use is one of: - ${cut:+max,suffix,string} - ${cutscr:+max,suffix,string} With the "+" before max, WeeChat ensures there are at most "max" chars in output, including the length of suffix string.
2017-03-30core: add ${re:#} to get the index of last group captured in evaluation of ↵Sébastien Helleu
expressions
2017-03-27core: add cut of string with max chars displayed in evaluation of expressionsSébastien Helleu
The syntax is: ${cutscr:max,suffix,string}. The string is cut after max chars displayed on screen. If the string is cut, the optional suffix is added after.
2017-03-25core: prevent infinite loop in evaluation of expression with extra_vars_evalSébastien Helleu
When extra variables are evaluated, to prevent infinite loop if the evaluated variable is calling itself, it is removed from hashtable "extra_vars" before evaluation.
2017-03-25core: add cut of string in evaluation of expressionsSébastien Helleu
The syntax is: ${cut:max,suffix,string}. The string is cut after max chars. If the string is cut, the optional suffix is added after.
2017-03-25core: add ternary operator (condition) in evaluation of expressionsSébastien Helleu
2017-01-01core: update copyright datesSébastien Helleu
2016-08-18core: move the extra_vars_eval argument after extra_varsSébastien Helleu
2016-08-18core: fix empty commentSébastien Helleu
2016-08-18Merge remote-tracking branch 'origin/pr/534'Sébastien Helleu
2016-01-01core: update copyright datesSébastien Helleu
2015-08-18core: add extra_vars evaluation option to eval_expressionSimmo Saan
2015-07-04core: add missing comments before functions when the result must be freed ↵Sébastien Helleu
after use
2015-06-30api: add support of evaluated sub-strings and current date/time in function ↵Sébastien Helleu
string_eval_expression() and command /eval
2015-06-23core: allow pointer as list name in evaluation of hdata (closes #450)Sébastien Helleu
2015-04-26api: add support of environment variables in function ↵Sébastien Helleu
string_eval_expression() and command /eval (issue #388)
2015-04-26core: add support of full color option name in command /eval and API ↵Sébastien Helleu
function string_eval_expression()
2015-01-01core: update copyright datesSébastien Helleu
2014-11-23core: fix regex replace in eval_expression when regex or regex_replace is emptySébastien Helleu
2014-10-22api: add regex replace feature in function string_eval_expressionSébastien Helleu
2014-10-16core: add hide of chars in string in evaluation of expressionsSébastien Helleu
The syntax is: ${hide:char,string}. All chars in string are replaced with char (which can be one or more chars).
2014-10-12core: move default prefix/suffix for evaluation in wee-eval.hSébastien Helleu
2014-08-13core: make argument "errors" optional in function string_replace_with_callbackSébastien Helleu
2014-07-12core: fix evaluation of expressions with regex condition (closes #63)Sébastien Helleu
The regex itself is not evaluated any more (so parentheses are kept). Before the fix: >> abcd =~ (?-i)^abc == [0] >> (abcd) =~ \(abcd\) == [0] After the fix: >> abcd =~ (?-i)^abc == [1] >> (abcd) =~ \(abcd\) == [1]
2014-04-04core: fix evaluation of expression with regex when a comparison char is in ↵Sébastien Helleu
the regex
2014-03-06core: fix recursive calls to function eval_expressionSebastien Helleu
2014-03-02core: fix memory leak in evaluation of sub-conditionsSebastien Helleu
2014-02-28api: add support of escaped strings in function string_eval_expression and ↵Sebastien Helleu
command /eval
2014-01-26core: fix memory leak in regex matching when evaluating expressionSebastien Helleu
2014-01-08core: fix crash in /eval when config option has a NULL valueSebastien Helleu
2014-01-05core: fix crash with hdata_update on shared strings, add hdata type ↵Sebastien Helleu
"shared_string" (bug #41104)
2014-01-01core: update copyright datesSebastien Helleu
2013-11-09api: add support of infos with format `${info:name,arguments}` in function ↵Sebastien Helleu
string_eval_expression and command /eval
2013-08-25core: fix evaluation of expressions with parenthesesSebastien Helleu
First evaluate sub-expressions between parentheses. Before the fix: >> 1 && (0 || 0) == [1] After the fix: >> 1 && (0 || 0) == [0]
2013-08-04core: optimize creation of hashtable "pointers" in eval_expression if ↵Sebastien Helleu
argument is NULL The hashtable is created on first call to eval_expression with pointers == NULL. On next calls, the hashtable is cleared, then used again. The hashtable is freed on exit.
2013-08-04api: add support of colors with format "${color:xxx}" in function ↵Sebastien Helleu
string_eval_expression and command /eval
2013-08-04api: add argument "options" in function string_eval_expression, add option ↵Sebastien Helleu
"-c" for command /eval (to evaluate a condition)
2013-07-27core: add secured data with optional encryption in file sec.confSebastien Helleu
2013-07-24core: fix priority of logical operators in evaluation of expressionSebastien Helleu
The AND ("&&") takes precedence over the OR ("||"). Before the fix: >> 1 || 1 && 0 == [0] After the fix: >> 1 || 1 && 0 == [1] Since the "&&" has higher priority, expression is evaluated as: "1 || (1 && 0)".
2013-07-08core: fix crash in evaluation of expression when reading a string in hdata ↵Sebastien Helleu
with a NULL value (bug #39419)
2013-03-17core: fix typos in many comments and some stringsSebastien Helleu
2013-01-26core: use size of 32 for hashtables (instead of 4, 8 or 16)Sebastien Helleu
A size of 32 will use a little more memory but will reduce collisions in key hashs, and then length of linked lists inside hash structure (faster search in hashtable).
2013-01-10core: fix some copyright datesSebastien Helleu