diff options
author | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2008-12-23 18:21:01 +0400 |
---|---|---|
committer | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2008-12-23 18:21:01 +0400 |
commit | 806f72424b4daa5e2200a47cc093b803bc6d2c89 (patch) | |
tree | c905f4d7832739aedf78277c02152e44e1743d9c /strings | |
parent | 04af51d1fda09f8c2d065032fa09fd0d490a5743 (diff) | |
parent | 43ee0f9f972a10ca888fcf509c2a0e6ad1e66d6d (diff) | |
download | mariadb-git-806f72424b4daa5e2200a47cc093b803bc6d2c89.tar.gz |
5.0-bugteam->5.1-bugteam merge
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype.c | 10 |
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: |