mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 23:54:31 +02:00
More use of new CHARSET_INFO functions and two bug fixes
This commit is contained in:
parent
24be8669a0
commit
4f62ac93f0
3 changed files with 7 additions and 42 deletions
|
|
@ -289,12 +289,10 @@ uint my_numchars_mb(CHARSET_INFO *cs __attribute__((unused)),
|
|||
}
|
||||
|
||||
uint my_charpos_mb(CHARSET_INFO *cs __attribute__((unused)),
|
||||
const char *b __attribute__((unused)),
|
||||
const char *e __attribute__((unused)),
|
||||
uint pos)
|
||||
const char *b, const char *e, uint pos)
|
||||
{
|
||||
uint res=0, mblen;
|
||||
const char *b0;
|
||||
uint mblen;
|
||||
const char *b0=b;
|
||||
|
||||
while (pos && b<e)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue