MySQL 8.4.2
Source Code Documentation
|
#include "client/mysqltest/regular_expressions.h"
#include "my_compiler.h"
#include "mysql/strings/m_ctype.h"
Functions | |
void | die (const char *fmt,...) |
std::regex | ps_re (ps_re_str, std::regex_constants::nosubs|std::regex_constants::icase) |
std::regex | sp_re (sp_re_str, std::regex_constants::nosubs|std::regex_constants::icase) |
std::regex | view_re (view_re_str, std::regex_constants::nosubs|std::regex_constants::icase) |
std::regex | opt_trace_re (opt_trace_re_str, std::regex_constants::nosubs|std::regex_constants::icase) |
std::regex | explain_re (explain_re_str, std::regex_constants::nosubs|std::regex_constants::icase) |
int | multi_reg_replace (struct st_replace_regex *r, char *val, size_t *len) |
Execute all substitutions on val. More... | |
int | search_protocol_re (std::regex *re, const char *str) |
Function to check if a protocol's regular expression matches the query string. More... | |
Variables | |
static const char *const | ps_re_str |
static const char *const | sp_re_str = ps_re_str |
static const char *const | view_re_str |
const char *const | opt_trace_re_str |
static const char *const | explain_re_str |
CHARSET_INFO * | charset_info |
void die | ( | const char * | fmt, |
... | |||
) |
std::regex explain_re | ( | explain_re_str | , |
std::regex_constants::nosubs|std::regex_constants::icase | |||
) |
int multi_reg_replace | ( | struct st_replace_regex * | r, |
char * | val, | ||
size_t * | len | ||
) |
Execute all substitutions on val.
[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. |
True | If substituition was made. |
False | If no substituition was made. |
std::regex opt_trace_re | ( | opt_trace_re_str | , |
std::regex_constants::nosubs|std::regex_constants::icase | |||
) |
std::regex ps_re | ( | ps_re_str | , |
std::regex_constants::nosubs|std::regex_constants::icase | |||
) |
int search_protocol_re | ( | std::regex * | re, |
const char * | str | ||
) |
Function to check if a protocol's regular expression matches the query string.
re | Pointer to a precompiled regular expression. |
str | Pointer to character string in which the pattern needs to be searched. |
1 | If the pattern is found. |
0 | If the pattern is not found. |
std::regex sp_re | ( | sp_re_str | , |
std::regex_constants::nosubs|std::regex_constants::icase | |||
) |
std::regex view_re | ( | view_re_str | , |
std::regex_constants::nosubs|std::regex_constants::icase | |||
) |
|
extern |
|
static |
const char* const opt_trace_re_str |
|
static |
|
static |
|
static |