summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorSergey Glukhov <Sergey.Glukhov@sun.com>2008-12-23 18:21:01 +0400
committerSergey Glukhov <Sergey.Glukhov@sun.com>2008-12-23 18:21:01 +0400
commitf42b9ad93f01ea495405fb9188a73433adce1bbd (patch)
treec905f4d7832739aedf78277c02152e44e1743d9c /strings
parentcb6a7559292703bfc40fd82851c330481f0289a4 (diff)
parentc06df92af647e67731cb3a76bd91d57219407f01 (diff)
downloadmariadb-git-f42b9ad93f01ea495405fb9188a73433adce1bbd.tar.gz
5.0-bugteam->5.1-bugteam merge
Diffstat (limited to 'strings')
-rw-r--r--strings/ctype.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/strings/ctype.c b/strings/ctype.c
index c313708f3f6..2c0fe09c07b 100644
--- a/strings/ctype.c
+++ b/strings/ctype.c
@@ -339,6 +339,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.
Returns TRUE for: