5.0-bugteam->5.1-bugteam merge

This commit is contained in:
Sergey Glukhov 2008-12-23 18:21:01 +04:00
commit f42b9ad93f
11 changed files with 527 additions and 132 deletions

View file

@ -338,6 +338,16 @@ my_string_repertoire(CHARSET_INFO *cs, const char *str, ulong length)
}
/*
Returns repertoire for charset
*/
uint my_charset_repertoire(CHARSET_INFO *cs)
{
return cs->state & MY_CS_PUREASCII ?
MY_REPERTOIRE_ASCII : MY_REPERTOIRE_UNICODE30;
}
/*
Detect whether a character set is ASCII compatible.