45#define FIND_TYPE_BASIC 0
47#define FIND_TYPE_NO_PREFIX (1 << 0)
49#define FIND_TYPE_NO_OVERWRITE (1 << 1)
51#define FIND_TYPE_ALLOW_NUMBER (1 << 2)
53#define FIND_TYPE_COMMA_TERM (1 << 3)
62 uint64_t cur_set, uint64_t default_set,
64 const char **err_pos,
unsigned int *err_len);
static int flags[50]
Definition: hp_test1.cc:39
Some integer typedefs for easier portability.
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1054
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:75
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:82
const char ** type_names
Definition: typelib.h:37
size_t count
Definition: typelib.h:35
const char * name
Definition: typelib.h:36
unsigned int * type_lengths
Definition: typelib.h:38
int find_type_or_exit(const char *x, TYPELIB *typelib, const char *option)
Definition: typelib.cc:48
TYPELIB * copy_typelib(MEM_ROOT *root, TYPELIB *from)
Create a copy of a specified TYPELIB structure.
Definition: typelib.cc:197
int find_type(const char *x, const TYPELIB *typelib, unsigned int flags)
Search after a string in a list of strings.
Definition: typelib.cc:86
const char * get_type(TYPELIB *typelib, unsigned int nr)
Get type.
Definition: typelib.cc:140
TYPELIB sql_protocol_typelib
Definition: client.cc:2068
uint64_t find_typeset(const char *x, TYPELIB *typelib, int *error_position)
Create an integer value to represent the supplied comma-separated string where each string in the TYP...
Definition: typelib.cc:159
uint64_t find_set_from_flags(const TYPELIB *lib, int default_name, uint64_t cur_set, uint64_t default_set, const char *str, unsigned int length, const char **err_pos, unsigned int *err_len)
Parse and apply a set of flag assingments.
Definition: typelib.cc:297