OpenVAS Libraries
9.0.3
|
Go to the source code of this file.
Functions | |
tree_cell * | nasl_string (lex_ctxt *) |
tree_cell * | nasl_rawstring (lex_ctxt *) |
tree_cell * | nasl_strlen (lex_ctxt *) |
tree_cell * | nasl_strcat (lex_ctxt *) |
tree_cell * | nasl_display (lex_ctxt *) |
tree_cell * | nasl_hex (lex_ctxt *) |
tree_cell * | nasl_hexstr (lex_ctxt *) |
tree_cell * | nasl_ord (lex_ctxt *) |
tree_cell * | nasl_tolower (lex_ctxt *) |
tree_cell * | nasl_toupper (lex_ctxt *) |
tree_cell * | nasl_ereg (lex_ctxt *) |
tree_cell * | nasl_eregmatch (lex_ctxt *) |
Does extended regular expression pattern matching. More... | |
tree_cell * | nasl_ereg_replace (lex_ctxt *) |
tree_cell * | nasl_egrep (lex_ctxt *) |
tree_cell * | nasl_match (lex_ctxt *) |
tree_cell * | nasl_split (lex_ctxt *) |
tree_cell * | nasl_chomp (lex_ctxt *) |
tree_cell * | nasl_substr (lex_ctxt *) |
tree_cell * | nasl_insstr (lex_ctxt *) |
tree_cell * | nasl_strstr (lex_ctxt *) |
tree_cell * | nasl_crap (lex_ctxt *) |
tree_cell * | nasl_int (lex_ctxt *) |
tree_cell * | nasl_stridx (lex_ctxt *) |
Returns index of a substring. More... | |
tree_cell * | nasl_str_replace (lex_ctxt *) |
Definition at line 1103 of file nasl_text_utils.c.
References alloc_tree_cell(), CONST_DATA, get_str_var_by_num(), get_var_size_by_num(), TC::size, TC::str_val, TC::type, and TC::x.
Definition at line 1139 of file nasl_text_utils.c.
References alloc_tree_cell(), CONST_DATA, FAKE_CELL, get_int_local_var_by_name(), get_int_var_by_num(), get_str_local_var_by_name(), get_var_size_by_name(), nasl_perror(), TC::size, TC::str_val, TC::type, and TC::x.
Definition at line 306 of file nasl_text_utils.c.
References alloc_tree_cell(), CONST_INT, deref_cell(), TC::i_val, nasl_string(), TC::size, TC::str_val, TC::type, and TC::x.
Definition at line 696 of file nasl_text_utils.c.
References alloc_tree_cell(), CONST_DATA, FAKE_CELL, get_int_local_var_by_name(), get_str_local_var_by_name(), get_var_size_by_name(), nasl_perror(), NS, TC::size, TC::str_val, TC::type, and TC::x.
Definition at line 451 of file nasl_text_utils.c.
References alloc_tree_cell(), CONST_INT, get_int_local_var_by_name(), get_str_local_var_by_name(), TC::i_val, nasl_perror(), TC::type, and TC::x.
Definition at line 653 of file nasl_text_utils.c.
References get_int_local_var_by_name(), get_str_local_var_by_name(), and nasl_perror().
Does extended regular expression pattern matching.
In NASL, this function returns an array.
Definition at line 804 of file nasl_text_utils.c.
References add_var_to_list(), alloc_tree_cell(), DYN_ARRAY, get_int_local_var_by_name(), get_str_local_var_by_name(), nasl_perror(), NS, TC::ref_val, st_nasl_string::s_siz, st_nasl_string::s_val, TC::type, st_a_nasl_var::v, st_a_nasl_var::v_str, VAR2_DATA, st_a_nasl_var::var_type, and TC::x.
Definition at line 327 of file nasl_text_utils.c.
References alloc_tree_cell(), CONST_STR, get_int_var_by_num(), TC::size, TC::str_val, TC::type, and TC::x.
Definition at line 349 of file nasl_text_utils.c.
References alloc_tree_cell(), CONST_STR, get_str_var_by_num(), get_var_size_by_num(), TC::size, TC::str_val, TC::type, and TC::x.
Syntax: insstr(s1, s2, i1, i2) or insstr(s1, s2, i1) Insert string s2 into slice [i1:i2] of string s1 and returns the result Warning: returns a CONST_DATA!
Definition at line 910 of file nasl_text_utils.c.
References alloc_tree_cell(), CONST_DATA, get_int_var_by_num(), get_str_var_by_num(), get_var_size_by_num(), nasl_perror(), TC::size, TC::str_val, TC::type, and TC::x.
Definition at line 1357 of file nasl_text_utils.c.
References alloc_tree_cell(), CONST_INT, get_int_var_by_num(), TC::i_val, TC::type, and TC::x.
Definition at line 970 of file nasl_text_utils.c.
References alloc_tree_cell(), CONST_INT, get_int_local_var_by_name(), get_str_local_var_by_name(), TC::i_val, nasl_perror(), str_match(), TC::type, and TC::x.
Definition at line 377 of file nasl_text_utils.c.
References alloc_tree_cell(), CONST_INT, get_str_var_by_num(), TC::i_val, nasl_perror(), TC::type, val, and TC::x.
Definition at line 144 of file nasl_text_utils.c.
References alloc_tree_cell(), array_max_index(), CONST_DATA, struct_lex_ctxt::ctx_vars, get_int_var_by_num(), get_str_var_by_num(), get_var_size_by_num(), get_var_type_by_num(), nasl_perror(), RAW_STR_LEN, TC::size, TC::str_val, TC::type, VAR2_INT, VAR2_STRING, VAR2_UNDEF, and TC::x.
Definition at line 995 of file nasl_text_utils.c.
References add_var_to_list(), alloc_tree_cell(), DYN_ARRAY, get_int_local_var_by_name(), get_str_local_var_by_name(), get_str_var_by_num(), get_var_size_by_name(), get_var_size_by_num(), nasl_perror(), TC::ref_val, st_nasl_string::s_siz, st_nasl_string::s_val, TC::type, st_a_nasl_var::v, st_a_nasl_var::v_str, VAR2_DATA, st_a_nasl_var::var_type, and TC::x.
str_replace(string: s, find: f, replace: r [,count: n])
Definition at line 1278 of file nasl_text_utils.c.
References alloc_typed_cell(), CONST_DATA, get_int_local_var_by_name(), get_local_var_size_by_name(), get_str_local_var_by_name(), nasl_perror(), TC::size, TC::str_val, and TC::x.
Definition at line 273 of file nasl_text_utils.c.
References alloc_tree_cell(), array_max_index(), CONST_DATA, struct_lex_ctxt::ctx_vars, get_str_var_by_num(), get_var_size_by_num(), TC::size, TC::str_val, TC::type, and TC::x.
Returns index of a substring.
Returning NULL for "not found" is dangerous as automatic conversion to to integer would change it into 0. So we return (-1).
Definition at line 1242 of file nasl_text_utils.c.
References alloc_typed_cell(), CONST_INT, get_int_var_by_num(), get_str_var_by_num(), get_var_size_by_num(), TC::i_val, nasl_perror(), and TC::x.
Definition at line 50 of file nasl_text_utils.c.
References alloc_tree_cell(), array_max_index(), CONST_DATA, struct_lex_ctxt::ctx_vars, get_str_var_by_num(), get_var_size_by_num(), get_var_type_by_num(), nasl_perror(), TC::size, TC::str_val, TC::type, VAR2_STRING, VAR2_UNDEF, and TC::x.
Referenced by nasl_display().
Definition at line 259 of file nasl_text_utils.c.
References alloc_tree_cell(), CONST_INT, get_var_size_by_num(), TC::i_val, TC::ref_count, TC::type, and TC::x.
Definition at line 1202 of file nasl_text_utils.c.
References alloc_tree_cell(), CONST_DATA, FAKE_CELL, get_str_var_by_num(), get_var_size_by_num(), TC::size, TC::str_val, TC::type, and TC::x.
Syntax: substr(s, i1) or substr(s, i1, i2) Returns character from string s starting for position i1 till the end or position i2 (start of string is 0)
Definition at line 857 of file nasl_text_utils.c.
References alloc_tree_cell(), CONST_DATA, CONST_STR, get_int_var_by_num(), get_str_var_by_num(), get_var_size_by_num(), get_var_type_by_num(), MAX_INT, nasl_perror(), TC::size, TC::str_val, TC::type, and TC::x.
Definition at line 397 of file nasl_text_utils.c.
References alloc_tree_cell(), CONST_DATA, get_str_var_by_num(), get_var_size_by_num(), TC::size, TC::str_val, TC::type, and TC::x.
Definition at line 420 of file nasl_text_utils.c.
References alloc_tree_cell(), CONST_DATA, get_str_var_by_num(), get_var_size_by_num(), TC::size, TC::str_val, TC::type, and TC::x.