summaryrefslogtreecommitdiff
path: root/src/core/wee-eval.c
AgeCommit message (Collapse)Author
2021-05-29core, irc, script: fix typosSébastien Helleu
2021-05-25core, buflist, irc, relay: replace freenode by libera in commentsSébastien Helleu
2021-05-16api: add translated string in evaluation of expressions with "translate:xxx" ↵Sébastien Helleu
(issue #1622)
2021-05-11core: split WeeChat home in 4 directories, use XDG directories by default ↵Sébastien Helleu
(issue #1285) The 4 directories (which can be the same): - config: configuration files, certificates - data: log/upgrade files, local plugins, scripts, xfer files - cache: script repository, scripts downloaded (temporary location) - runtime: FIFO pipe, relay UNIX sockets
2021-04-04core: evaluate left/right part of comparison after split on the comparison ↵Sébastien Helleu
operator in ${if:xxx} (closes #1627) To force evaluation of the expression before doing the comparison (less safe), the "${eval_cond:xxx}" can be used. With the old behavior we had: >> ${if:a==b} == [0] >> ${if:${raw:a==b}} == [0] >> ${if:${eval_cond:${raw:a==b}}} == [0] And with the new behavior, we have: >> ${if:a==b} == [0] >> ${if:${raw:a==b}} == [1] >> ${if:${eval_cond:${raw:a==b}}} == [0]
2021-03-18core: add pointer name in description of function eval_replace_vars_cbSébastien Helleu
2021-03-17api: add support of pointer names in function string_eval_expression (direct ↵Sébastien Helleu
and in hdata) These two formats are now supported, if "pointer_name" is present in the "pointers" hashtable: * "${pointer_name}": value of pointer (example: "0x1234abcd") * ${buffer[pointer_name].full_name}: use of a pointer name instead of pointer value or list name
2021-02-05core: add raw string in evaluation of expressions with "raw:xxx" (closes #1611)Sébastien Helleu
2021-01-02core: update copyright datesSébastien Helleu
2021-01-02core: move debug_id assignation in macro EVAL_DEBUG_MSGSébastien Helleu
2021-01-01core: add indentation and colors in /eval debug outputSébastien Helleu
2020-12-31core: display more verbose debug with two "-d" in command /evalSébastien Helleu
Now a single -d in command /eval shows less debug messages than previous versions. To get the same debug messages than previous versions, two -d must be used.
2020-11-14core: add evaluation of conditions in evaluation of expressions with ↵Sébastien Helleu
"eval_cond:" (closes #1582)
2020-08-23api: add argument "bytes" in function string_dyn_concatSébastien Helleu
2020-05-21core: add base 16/32/64 encoding/decoding in evaluation of expressionsSébastien Helleu
2020-05-20core: split function eval_replace_vars_cb into multiple functionsSébastien Helleu
2020-05-05core: add include comparison operators in evaluation of expressionsSébastien Helleu
New comparison operators: - "==*": is matching mask, case sensitive (wildcard "*" is allowed) - "!!*": is NOT matching mask, case sensitive (wildcard "*" is allowed) - "==-": is included, case sensitive - "!!-": is NOT included, case sensitive - "=-": is included, case insensitive - "!-": is NOT included, case insensitive
2020-01-04core: update copyright datesSébastien Helleu
2019-12-18core: fix evaluation of condition with nested "if" (closes #1434)Sébastien Helleu
2019-12-18core: add debug option "-d" in command /eval (issue #1434)Sébastien Helleu
2019-10-12core: add reverse of string for screen in evaluation of expressions with ↵Sébastien Helleu
"revscr:"
2019-10-06core: add support of modifiers in evaluation of expressions with ↵Sébastien Helleu
"modifier:name,data,string" (issue #60)
2019-09-21core: ignore color codes in ${length:xxx} and ${lengthscr:xxx}Sébastien Helleu
2019-09-21core: add "length:xxx" and "lengthscr:xxx" in evaluation of expressionsSébastien Helleu
2019-09-20core: add calculation of expression in evaluation of expressions with ↵Sébastien Helleu
"calc:..." (issue #997)
2019-04-13api: return allocated string in hook_info callback and function info_getSébastien Helleu
2019-01-01core: update copyright datesSébastien Helleu
2018-11-29core: use https for links to GNU GPL licenseSébastien Helleu
2018-10-09core: add repeat of string in evaluation of expressions with ↵Sébastien Helleu
"repeat:count,string" (closes #958)
2018-10-08core: fix evaluation of nested ternary operators (closes #1263)Sébastien Helleu
2018-10-01core: replace "long unsigned int" by "unsigned long"Sébastien Helleu
2018-08-18core: fix evaluation of condition when the left operand is an empty stringSébastien Helleu
2018-08-16core: fix string evaluation with regex replacement when the string is emptySébastien Helleu
2018-06-11fset: fix crash when applying filters after closing the fset buffer (closes ↵Sébastien Helleu
#1204)
2018-06-02core: add reverse of string in evaluation of expressions with "rev:" (closes ↵Sébastien Helleu
#1200)
2018-04-17core: fix infinite loop in evaluation of strings (closes #1183)Sébastien Helleu
2018-04-17core: add an eval context structureSébastien Helleu
A pointer to this structure is given as parameter in each eval function called: - eval_replace_vars - eval_expression_condition - eval_replace_regex
2018-01-05core: update copyright datesSébastien Helleu
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.