Go to the source code of this file.
◆ multi_reg_replace()
Execute all substitutions on val.
- Parameters
-
[in] | val | Pointer to the character string to be used as input for the regex replace operation. |
[in,out] | r | Pointer to the st_replace_regex structure which holds arguments and information for the command. |
[in,out] | len | Pointer to variable holding length of input string. |
- Return values
-
True | If substituition was made. |
False | If no substituition was made. |
- Note
- r->buf points at the resulting buffer with all substitutions done. len points at length of resulting buffer. r->even_buf and r->odd_buf might have been reallocated. r->even_buf_len and r->odd_buf_len might have been changed.
◆ search_protocol_re()
int search_protocol_re |
( |
std::regex * |
re, |
|
|
const char * |
str |
|
) |
| |
Function to check if a protocol's regular expression matches the query string.
- Parameters
-
re | Pointer to a precompiled regular expression. |
str | Pointer to character string in which the pattern needs to be searched. |
- Return values
-
1 | If the pattern is found. |
0 | If the pattern is not found. |
◆ explain_re
◆ opt_trace_re
◆ ps_re
◆ sp_re
◆ view_re