Functions | |
const char * | vars_get_value (vars_t *vs, const char *name) |
Get the value of the variable with given name. | |
var_t * | vars_get (vars_t *vs, const char *name) |
Get a variable with given name. | |
int | vars_get_value_i (vars_t *vs, const char *name) |
Get the integer value of a variable with a given name. | |
u_string_t * | vars_get_value_s (vars_t *vs, const char *name) |
Get u_string_t value of a variable. | |
var_t * | vars_geti (vars_t *vs, const char *name, size_t ith) |
Get i-th variable with given name. | |
const char * | vars_geti_value (vars_t *vs, const char *name, size_t ith) |
Get the value of the variable at a given index. | |
int | vars_geti_value_i (vars_t *vs, const char *name, size_t ith) |
Get the integer value of a variable with a given name and index. | |
u_string_t * | vars_geti_value_s (vars_t *vs, const char *name, size_t ith) |
Get u_string_t value of i-th variable. | |
var_t * | vars_getn (vars_t *vs, size_t n) |
Get ith variable. | |
size_t | vars_count (vars_t *vs) |
Count the number of variables. | |
size_t | vars_countn (vars_t *vs, const char *name) |
Count the number of variables with given name. | |
void | vars_foreach (vars_t *vs, int(*foreach)(var_t *, void *), void *arg) |
Execute a function on a list of variables. | |
int | vars_add (vars_t *vs, var_t *v) |
int | vars_del (vars_t *vs, var_t *v) |
int | vars_add_strvar (vars_t *vs, const char *str) |
int | vars_add_urlvar (vars_t *vs, const char *cstr, var_t **v) |
Add an URL variable. |
|
Return the string value of the variable with name
Definition at line 498 of file vars.c. References vars_geti_value(). |
|
Return a
Definition at line 378 of file vars.c. References vars_geti(). Referenced by request_get_arg(), request_get_cookie(), session_del(), session_get(), session_set(), and vars_get_value_s(). |
|
Return the integer value of the variable with name
Definition at line 452 of file vars.c. References vars_geti_value_i(). |
|
Return an
Definition at line 79 of file vars.c. References var_get_value_s(), and vars_get(). |
|
Return the
Definition at line 346 of file vars.c. References var_s::sname. Referenced by vars_get(), vars_geti_value(), and vars_geti_value_s(). |
|
Return the string value of the variable with name
Definition at line 474 of file vars.c. References var_get_value(), and vars_geti(). Referenced by vars_get_value(), and vars_geti_value_i(). |
|
Get the integer value of the variable with name
Definition at line 400 of file vars.c. References vars_geti_value(). Referenced by vars_get_value_i(). |
|
Return an
Definition at line 426 of file vars.c. References var_get_value_s(), and vars_geti(). |
|
Return the
Definition at line 160 of file vars.c. Referenced by session_clean(). |
|
Return a the number of variables in a list
|
|
Return a the number of variables in a list with given name
Definition at line 203 of file vars.c. References var_s::sname. |
|
Execute function
|
|
Parse the "name=value" string
Definition at line 231 of file vars.c. References u_urlncpy(), and vars_add(). |