Asterisk - The Open Source Telephony Project
18.5.0
|
Go to the source code of this file.
Functions | |
int | ast_expr (char *expr, char *buf, int length, struct ast_channel *chan) |
Evaluate the given expression. More... | |
int | ast_str_expr (struct ast_str **str, ssize_t maxlen, struct ast_channel *chan, char *expr) |
Evaluate the given expression. More... | |
int ast_expr | ( | char * | expr, |
char * | buf, | ||
int | length, | ||
struct ast_channel * | chan | ||
) |
Evaluate the given expression.
expr | An expression |
buf | Result buffer |
length | Size of the result buffer, in bytes |
chan | Channel to use for evaluating included dialplan functions, if any |
Definition at line 2405 of file ast_expr2f.c.
Referenced by AST_TEST_DEFINE(), check_eval(), check_pval_item(), is_zero_or_null(), and pbx_substitute_variables_helper_full().
int ast_str_expr | ( | struct ast_str ** | str, |
ssize_t | maxlen, | ||
struct ast_channel * | chan, | ||
char * | expr | ||
) |
Evaluate the given expression.
str | Dynamic result buffer |
maxlen | <0 if the size of the buffer should remain constant, >0 if the size of the buffer should expand to that many bytes, maximum, or 0 for unlimited expansion of the result buffer |
chan | Channel to use for evaluating included dialplan functions, if any |
expr | An expression |
Definition at line 2447 of file ast_expr2f.c.
References AST_EXPR_number, ast_str_set(), ast_str_strlen(), ast_yy_scan_string(), ast_yylex_destroy(), ast_yylex_init(), ast_yyparse(), FP___PRINTF, free(), parse_io::scanner, and parse_io::string.
Referenced by ast_str_substitute_variables_full().