From 4fa4383ba8ac841b9d24d5502811ad06ce2d801e Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 2 Feb 2006 10:07:47 +0400 Subject: 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. include/Makefile.am: Adding my_uctype.h include/m_ctype.h: Adding declaration of my_uni_ctype, ctype data for Unicode. strings/Makefile.am: Adding build rules for uctypedump, a dump tool to create my_uctype.h using Unicode Character Database file. strings/ctype-big5.c: Adding new function strings/ctype-bin.c: Adding new function strings/ctype-cp932.c: Adding new function strings/ctype-euc_kr.c: Adding new function strings/ctype-eucjpms.c: Adding new function strings/ctype-gb2312.c: Adding new function strings/ctype-gbk.c: Adding new function strings/ctype-latin1.c: Adding new function strings/ctype-mb.c: Adding new function strings/ctype-simple.c: Adding new function strings/ctype-sjis.c: Adding new function strings/ctype-tis620.c: Adding new function strings/ctype-ucs2.c: Adding new function strings/ctype-ujis.c: Adding new function strings/ctype-utf8.c: Adding new function --- strings/ctype-cp932.c | 1 + 1 file changed, 1 insertion(+) (limited to 'strings/ctype-cp932.c') diff --git a/strings/ctype-cp932.c b/strings/ctype-cp932.c index 1e3126865f3..38f625916a0 100644 --- a/strings/ctype-cp932.c +++ b/strings/ctype-cp932.c @@ -5478,6 +5478,7 @@ static MY_CHARSET_HANDLER my_charset_handler= my_numcells_cp932, my_mb_wc_cp932, /* mb_wc */ my_wc_mb_cp932, /* wc_mb */ + my_mb_ctype_mb, my_caseup_str_8bit, my_casedn_str_8bit, my_caseup_8bit, -- cgit v1.2.1