summaryrefslogtreecommitdiff
path: root/strings/ctype-ujis.c
diff options
context:
space:
mode:
authorbar@mysql.com <>2006-02-02 10:07:47 +0400
committerbar@mysql.com <>2006-02-02 10:07:47 +0400
commitd7c773834baa7096f4c4279cbd17a48abe84ae25 (patch)
tree379982f5e16065284e45a307694ab32d835c9795 /strings/ctype-ujis.c
parentf90661e443575e4fce0fe972c0a733ebe1561074 (diff)
downloadmariadb-git-d7c773834baa7096f4c4279cbd17a48abe84ae25.tar.gz
WL#1386 - CTYPE table for unicode character sets
A prerequisite for several fulltext and XML bugs. MY_CHARSET_HANDLER now has a new function "ctype" to detect a type of the next character in a string (i.e. digit, letter, space, punctuation, control, etc), which now works correctly for both 8bit and multibyte charsets. Previously only 8bit charsets worked correctly, while any multibyte character was considered as letter in multibyte charsets. Many files: Adding new function Makefile.am: Adding build rules for uctypedump, a dump tool to create my_uctype.h using Unicode Character Database file. m_ctype.h: Adding declaration of my_uni_ctype, ctype data for Unicode. Adding new member into MY_CHARSET_HANDLER Makefile.am: Adding my_uctype.h into noinst_HEADERS my_uctype.h, uctypedump.c: new files: ctype data for unicode, and the tool to generate it from a Unicode Character Database file.
Diffstat (limited to 'strings/ctype-ujis.c')
-rw-r--r--strings/ctype-ujis.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/strings/ctype-ujis.c b/strings/ctype-ujis.c
index 696eecaa794..a3e48a704f4 100644
--- a/strings/ctype-ujis.c
+++ b/strings/ctype-ujis.c
@@ -8531,6 +8531,7 @@ static MY_CHARSET_HANDLER my_charset_handler=
my_numcells_eucjp,
my_mb_wc_euc_jp, /* mb_wc */
my_wc_mb_euc_jp, /* wc_mb */
+ my_mb_ctype_mb,
my_caseup_str_mb,
my_casedn_str_mb,
my_caseup_mb,