[MDEV-21581] Helper functions and methods for CHARSET_INFO Created: 2020-01-28 Updated: 2020-01-28 Resolved: 2020-01-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Character Sets |
| Fix Version/s: | 10.5.1 |
| Type: | Task | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
The call notation of CHARSET_INFO routines has some disadvantages:
Examples:
To make the call notation simple and proof to changes in CHARSET_INFO, lets do the following:
so the code in the above examples will turn into:
The new notation is better, as it does not contain sequences like cs->cset-> and cs->coll->, and the CHARSET_INFO parameter is mentioned only one time (instead of two times), so the new style of the caller code:
|