diff options
author | Alexander Barkov <bar@mariadb.com> | 2021-11-28 16:48:13 +0400 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2022-08-10 15:04:11 +0200 |
commit | 6bc10f8026e691444f0d2e857a5d0de4b88fa11f (patch) | |
tree | 9c79bcf8177e0d6421213072baa9117ec5d5538d /include/m_ctype.h | |
parent | d7ffb7c3dd95c4c5e36f75b09662faafa0fb1ecd (diff) | |
download | mariadb-git-6bc10f8026e691444f0d2e857a5d0de4b88fa11f.tar.gz |
MDEV-27009 Add UCA-14.0.0 collations - adding version aware implicit weight handling
Implicit weights are now handled according to the Unicode version
(14.0.0 vs earlier versions).
- Adding a new member MY_UCA_INFO::version
- Copy logical positions and the version from "src_uca" to "new_uca"
in init_weight_level().
- Adding a "const MY_UCA_INFO *" parameter to a few functions
to know Unicode version to generate implicit weights accordingly:
- during the collation initialization time, to pages which are
a mixture of explicit and implicit weights
- during comparison time, for fully implicit pages
Diffstat (limited to 'include/m_ctype.h')
-rw-r--r-- | include/m_ctype.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/m_ctype.h b/include/m_ctype.h index 83b12c3c4f6..1d0053815ea 100644 --- a/include/m_ctype.h +++ b/include/m_ctype.h @@ -168,6 +168,9 @@ typedef struct uca_info_st my_wc_t first_variable; my_wc_t last_variable; + /* Unicode version */ + uint version; + } MY_UCA_INFO; |