MySQL 9.1.0
Source Code Documentation
|
Classes | |
class | Name |
Normalizes character set/collation names. More... | |
Functions | |
MYSQL_STRINGS_EXPORT void | initialize (const char *charset_dir=nullptr, MY_CHARSET_LOADER *loader=nullptr) |
Initialize character set/collation library. More... | |
MYSQL_STRINGS_EXPORT void | shutdown () |
Shutdown character set/collation library. More... | |
MYSQL_STRINGS_EXPORT const CHARSET_INFO * | find_by_name (const Name &name) |
Find collation by its name. More... | |
const CHARSET_INFO * | find_by_name (const char *name) |
Find collation by its name. More... | |
MYSQL_STRINGS_EXPORT const CHARSET_INFO * | find_by_id (unsigned id) |
Find collation by its number. More... | |
MYSQL_STRINGS_EXPORT const CHARSET_INFO * | find_primary (Name cs_name) |
Find primary collation by its character set name. More... | |
const CHARSET_INFO * | find_primary (const char *cs_name) |
Find primary collation by its character set name. More... | |
const CHARSET_INFO * mysql::collation::find_by_id | ( | unsigned | id | ) |
Find collation by its number.
id | Collation id (hardcoded in library sources or specified in Index.xml) |
|
inline |
Find collation by its name.
name | '\0'-terminated string of collation name (not normalized name is fine) |
const CHARSET_INFO * mysql::collation::find_by_name | ( | const Name & | name | ) |
Find collation by its name.
name | Collation name |
|
inline |
Find primary collation by its character set name.
cs_name | '\0'-terminated string of character set name (not normalized name is fine) |
const CHARSET_INFO * mysql::collation::find_primary | ( | Name | cs_name | ) |
Find primary collation by its character set name.
cs_name | Character set name |
void mysql::collation::initialize | ( | const char * | charset_dir = nullptr , |
MY_CHARSET_LOADER * | loader = nullptr |
||
) |
Initialize character set/collation library.
charset_dir | Optional "/\0"-terminated path to the directory containing Index.xml |
loader | Optional user-specified hooks to the character set/collation parser/initializer. |
void mysql::collation::shutdown | ( | ) |
Shutdown character set/collation library.
This call is mainly necessary in ASAN etc. builds.