59 uint nKeyLength,
const char *
str);
int completion_hash_update(HashTable *ht, const char *arKey, uint nKeyLength, const char *str)
Definition: completion_hash.cc:64
int completion_hash_exists(HashTable *ht, char *arKey, uint nKeyLength)
Definition: completion_hash.cc:132
int completion_hash_init(HashTable *ht, uint nSize)
Definition: completion_hash.cc:48
void completion_hash_free(HashTable *ht)
Definition: completion_hash.cc:200
Bucket * find_longest_match(HashTable *ht, char *str, uint length, uint *res_length)
Definition: completion_hash.cc:165
int hash_exists(HashTable *ht, char *arKey)
void completion_hash_clean(HashTable *ht)
Definition: completion_hash.cc:195
void add_word(HashTable *ht, const char *str)
Definition: completion_hash.cc:205
Bucket * find_all_matches(HashTable *ht, const char *str, uint length, uint *res_length)
Definition: completion_hash.cc:151
struct hashtable HashTable
This file follows Google coding style, except for the name MEM_ROOT (which is kept for historical rea...
Common header for many mysys elements.
static HashTable ht
Definition: mysql.cc:161
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1081
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:76
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:83
Definition: completion_hash.h:35
const char * str
Definition: completion_hash.h:36
struct _entry * pNext
Definition: completion_hash.h:37
Definition: completion_hash.h:40
const char * arKey
Definition: completion_hash.h:42
entry * pData
Definition: completion_hash.h:45
uint count
Definition: completion_hash.h:44
uint nKeyLength
Definition: completion_hash.h:43
uint h
Definition: completion_hash.h:41
struct bucket * pNext
Definition: completion_hash.h:46
Definition: completion_hash.h:49
uint nTableSize
Definition: completion_hash.h:50
Bucket ** arBuckets
Definition: completion_hash.h:54
MEM_ROOT mem_root
Definition: completion_hash.h:52
uint(* pHashFunction)(const char *arKey, uint nKeyLength)
Definition: completion_hash.h:53
uint initialized
Definition: completion_hash.h:51