[MDEV-23154] Add a data type my_repertoire_t Created: 2020-07-13  Updated: 2020-07-13  Resolved: 2020-07-13

Status: Closed
Project: MariaDB Server
Component/s: Character Sets
Fix Version/s: 10.5.5

Type: Task Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: None


 Description   

As of version 10.5.4, we use the uint data type to store flags like MY_REPERTOIRE_ASCII, MY_REPERTOIRE_EXTENDED, etc.

For stricter data type control, let's add a separate enum-based data type as follows:

typedef enum enum_repertoire_t
{
  MY_REPERTOIRE_NONE=        0,
  MY_REPERTOIRE_ASCII=       1, /* Pure ASCII            U+0000..U+007F */
  MY_REPERTOIRE_EXTENDED=    2, /* Extended characters:  U+0080..U+FFFF */
  MY_REPERTOIRE_UNICODE30=   3  /* ASCII | EXTENDED:     U+0000..U+FFFF */
} my_repertoire_t;

and fix the related classes and routines to use the new data type.


Generated at Thu Feb 08 09:20:15 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.