MySQL 8.4.2
Source Code Documentation
|
#include "sql/strfunc.h"
#include <string.h>
#include "my_alloc.h"
#include "my_dbug.h"
#include "my_sys.h"
#include "mysql/strings/m_ctype.h"
#include "sql/sql_class.h"
#include "sql/sql_const.h"
#include "sql_string.h"
#include "typelib.h"
Functions | |
ulonglong | find_set (const TYPELIB *lib, const char *str, size_t length, const CHARSET_INFO *cs, const char **err_pos, uint *err_len, bool *set_warning) |
uint | find_type (const TYPELIB *lib, const char *find, size_t length, bool part_match) |
uint | find_type2 (const TYPELIB *typelib, const char *x, size_t length, const CHARSET_INFO *cs) |
uint | check_word (TYPELIB *lib, const char *val, const char *end, const char **end_of_word) |
size_t | strconvert (const CHARSET_INFO *from_cs, const char *from, CHARSET_INFO *to_cs, char *to, size_t to_length, uint *errors) |
char * | set_to_string (THD *thd, LEX_STRING *result, ulonglong set, const char *lib[], bool quoted) |
char * | set_to_string (THD *thd, LEX_STRING *result, ulonglong set, const char *lib[]) |
char * | flagset_to_string (THD *thd, LEX_STRING *result, ulonglong set, const char *lib[]) |
LEX_STRING * | make_lex_string_root (MEM_ROOT *mem_root, const char *str, size_t length) |
Create a LEX_STRING in a MEM_ROOT and copy the given string into it. More... | |
bool | lex_string_strmake (MEM_ROOT *mem_root, LEX_STRING *lex_str, const char *str, size_t length) |
Copy the given string into a LEX_STRING, allocating it in the given MEM_ROOT. More... | |
bool | lex_string_strmake (MEM_ROOT *mem_root, LEX_CSTRING *lex_str, const char *str, size_t length) |
Copy the given string into a LEX_CSTRING, allocating it in the given MEM_ROOT. More... | |
Variables | |
static const char | field_separator = ',' |
uint check_word | ( | TYPELIB * | lib, |
const char * | val, | ||
const char * | end, | ||
const char ** | end_of_word | ||
) |
ulonglong find_set | ( | const TYPELIB * | lib, |
const char * | str, | ||
size_t | length, | ||
const CHARSET_INFO * | cs, | ||
const char ** | err_pos, | ||
uint * | err_len, | ||
bool * | set_warning | ||
) |
uint find_type | ( | const TYPELIB * | lib, |
const char * | find, | ||
size_t | length, | ||
bool | part_match | ||
) |
uint find_type2 | ( | const TYPELIB * | typelib, |
const char * | x, | ||
size_t | length, | ||
const CHARSET_INFO * | cs | ||
) |
char * flagset_to_string | ( | THD * | thd, |
LEX_STRING * | result, | ||
ulonglong | set, | ||
const char * | lib[] | ||
) |
bool lex_string_strmake | ( | MEM_ROOT * | mem_root, |
LEX_CSTRING * | lex_str, | ||
const char * | str, | ||
size_t | length | ||
) |
Copy the given string into a LEX_CSTRING, allocating it in the given MEM_ROOT.
mem_root | MEM_ROOT where to allocate the string. |
lex_str | LEX_CSTRING to fill with the copied string. |
str | string to be copied into the LEX_CSTRING. |
length | length of str, in bytes |
bool lex_string_strmake | ( | MEM_ROOT * | mem_root, |
LEX_STRING * | lex_str, | ||
const char * | str, | ||
size_t | length | ||
) |
Copy the given string into a LEX_STRING, allocating it in the given MEM_ROOT.
mem_root | MEM_ROOT where to allocate the string. |
lex_str | LEX_STRING to fill with the copied string. |
str | string to be copied into the LEX_STRING. |
length | length of str, in bytes |
LEX_STRING * make_lex_string_root | ( | MEM_ROOT * | mem_root, |
const char * | str, | ||
size_t | length | ||
) |
Create a LEX_STRING in a MEM_ROOT and copy the given string into it.
mem_root | MEM_ROOT where to allocate the LEX_STRING. |
str | string to be copied into the LEX_STRING. |
length | length of str, in bytes |
char * set_to_string | ( | THD * | thd, |
LEX_STRING * | result, | ||
ulonglong | set, | ||
const char * | lib[] | ||
) |
char * set_to_string | ( | THD * | thd, |
LEX_STRING * | result, | ||
ulonglong | set, | ||
const char * | lib[], | ||
bool | quoted | ||
) |
size_t strconvert | ( | const CHARSET_INFO * | from_cs, |
const char * | from, | ||
CHARSET_INFO * | to_cs, | ||
char * | to, | ||
size_t | to_length, | ||
uint * | errors | ||
) |
|
static |