Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
3827fa55
Commit
3827fa55
authored
Mar 24, 2004
by
bar@bar.intranet.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unicode Collation Algorithm subset implementation
parent
403001ff
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7069 additions
and
11 deletions
+7069
-11
include/m_ctype.h
include/m_ctype.h
+2
-1
libmysql/Makefile.shared
libmysql/Makefile.shared
+2
-1
mysys/charset-def.c
mysys/charset-def.c
+1
-0
sql/share/charsets/Index.xml
sql/share/charsets/Index.xml
+0
-3
strings/Makefile.am
strings/Makefile.am
+4
-4
strings/ctype-uca.c
strings/ctype-uca.c
+7037
-0
strings/ctype-ucs2.c
strings/ctype-ucs2.c
+23
-2
No files found.
include/m_ctype.h
View file @
3827fa55
...
...
@@ -135,6 +135,7 @@ typedef struct my_collation_handler_st
extern
MY_COLLATION_HANDLER
my_collation_mb_bin_handler
;
extern
MY_COLLATION_HANDLER
my_collation_8bit_bin_handler
;
extern
MY_COLLATION_HANDLER
my_collation_8bit_simple_ci_handler
;
extern
MY_COLLATION_HANDLER
my_collation_ucs2_uca_handler
;
typedef
struct
my_charset_handler_st
...
...
@@ -238,13 +239,13 @@ extern CHARSET_INFO my_charset_tis620_thai_ci;
extern
CHARSET_INFO
my_charset_tis620_bin
;
extern
CHARSET_INFO
my_charset_ucs2_general_ci
;
extern
CHARSET_INFO
my_charset_ucs2_bin
;
extern
CHARSET_INFO
my_charset_ucs2_general_uca
;
extern
CHARSET_INFO
my_charset_ujis_japanese_ci
;
extern
CHARSET_INFO
my_charset_ujis_bin
;
extern
CHARSET_INFO
my_charset_utf8_general_ci
;
extern
CHARSET_INFO
my_charset_utf8_bin
;
extern
CHARSET_INFO
my_charset_cp1250_czech_ci
;
/* declarations for simple charsets */
extern
int
my_strnxfrm_simple
(
CHARSET_INFO
*
,
uchar
*
,
uint
,
const
uchar
*
,
uint
);
...
...
libmysql/Makefile.shared
View file @
3827fa55
...
...
@@ -42,7 +42,8 @@ mystringsobjects = strmov.lo strxmov.lo strxnmov.lo strnmov.lo \
ctype-big5.lo ctype-czech.lo ctype-euc_kr.lo
\
ctype-win1250ch.lo ctype-utf8.lo ctype-extra.lo
\
ctype-ucs2.lo ctype-gb2312.lo ctype-gbk.lo
\
ctype-sjis.lo ctype-tis620.lo ctype-ujis.lo xml.lo
ctype-sjis.lo ctype-tis620.lo ctype-ujis.lo
\
ctype-uca.lo xml.lo
mystringsextra
=
strto.c
dbugobjects
=
dbug.lo
# IT IS IN SAFEMALLOC.C sanity.lo
...
...
mysys/charset-def.c
View file @
3827fa55
...
...
@@ -73,6 +73,7 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused)))
#ifdef HAVE_CHARSET_ucs2
add_compiled_collation
(
&
my_charset_ucs2_general_ci
);
add_compiled_collation
(
&
my_charset_ucs2_bin
);
add_compiled_collation
(
&
my_charset_ucs2_general_uca
);
#endif
#ifdef HAVE_CHARSET_ujis
...
...
sql/share/charsets/Index.xml
View file @
3827fa55
...
...
@@ -464,9 +464,6 @@ To make maintaining easier please:
<order>
Sorbian
</order>
</collation>
<collation
name=
"macce_bin"
id=
"43"
order=
"Binary"
flag=
"binary"
/>
<!--collation name="macce_ci_ai" id="44"/-->
<!--collation name="macce_ci" id="45"/-->
<!--collation name="macce_cs" id="46"/-->
</charset>
<charset
name=
"macroman"
>
...
...
strings/Makefile.am
View file @
3827fa55
...
...
@@ -22,19 +22,19 @@ pkglib_LIBRARIES = libmystrings.a
# Exact one of ASSEMBLER_X
if
ASSEMBLER_x86
ASRCS
=
strings-x86.s longlong2str-x86.s my_strtoll10-x86.s
CSRCS
=
bfill.c bmove.c bmove512.c bchange.c strxnmov.c int2str.c str2int.c r_strinstr.c strtod.c bcmp.c strtol.c strtoul.c strtoll.c strtoull.c llstr.c strnlen.c ctype.c ctype-simple.c ctype-mb.c ctype-big5.c ctype-czech.c ctype-euc_kr.c ctype-gb2312.c ctype-gbk.c ctype-sjis.c ctype-tis620.c ctype-ujis.c ctype-utf8.c ctype-ucs2.c ctype-win1250ch.c ctype-bin.c ctype-latin1.c my_vsnprintf.c xml.c ctype-extra.c
CSRCS
=
bfill.c bmove.c bmove512.c bchange.c strxnmov.c int2str.c str2int.c r_strinstr.c strtod.c bcmp.c strtol.c strtoul.c strtoll.c strtoull.c llstr.c strnlen.c ctype.c ctype-simple.c ctype-mb.c ctype-big5.c ctype-czech.c ctype-euc_kr.c ctype-gb2312.c ctype-gbk.c ctype-sjis.c ctype-tis620.c ctype-ujis.c ctype-utf8.c ctype-ucs2.c ctype-
uca.c ctype-
win1250ch.c ctype-bin.c ctype-latin1.c my_vsnprintf.c xml.c ctype-extra.c
else
if
ASSEMBLER_sparc32
# These file MUST all be on the same line!! Otherwise automake
# generats a very broken makefile
ASRCS
=
bmove_upp-sparc.s strappend-sparc.s strend-sparc.s strinstr-sparc.s strmake-sparc.s strmov-sparc.s strnmov-sparc.s strstr-sparc.s
CSRCS
=
strcont.c strfill.c strcend.c is_prefix.c longlong2str.c bfill.c bmove.c bmove512.c bchange.c strxnmov.c int2str.c str2int.c r_strinstr.c strtod.c bcmp.c strtol.c strtoul.c strtoll.c strtoull.c llstr.c strnlen.c strxmov.c ctype.c ctype-simple.c ctype-mb.c ctype-big5.c ctype-czech.c ctype-euc_kr.c ctype-gb2312.c ctype-gbk.c ctype-sjis.c ctype-tis620.c ctype-ujis.c ctype-utf8.c ctype-ucs2.c ctype-win1250ch.c ctype-bin.c ctype-latin1.c my_vsnprintf.c xml.c ctype-extra.c my_strtoll10.c
CSRCS
=
strcont.c strfill.c strcend.c is_prefix.c longlong2str.c bfill.c bmove.c bmove512.c bchange.c strxnmov.c int2str.c str2int.c r_strinstr.c strtod.c bcmp.c strtol.c strtoul.c strtoll.c strtoull.c llstr.c strnlen.c strxmov.c ctype.c ctype-simple.c ctype-mb.c ctype-big5.c ctype-czech.c ctype-euc_kr.c ctype-gb2312.c ctype-gbk.c ctype-sjis.c ctype-tis620.c ctype-ujis.c ctype-utf8.c ctype-ucs2.c ctype-
uca.c ctype-
win1250ch.c ctype-bin.c ctype-latin1.c my_vsnprintf.c xml.c ctype-extra.c my_strtoll10.c
else
#no assembler
ASRCS
=
# These file MUST all be on the same line!! Otherwise automake
# generats a very broken makefile
CSRCS
=
strxmov.c bmove_upp.c strappend.c strcont.c strend.c strfill.c strcend.c is_prefix.c strstr.c strinstr.c strmake.c strnmov.c strmov.c longlong2str.c bfill.c bmove.c bmove512.c bchange.c strxnmov.c int2str.c str2int.c r_strinstr.c strtod.c bcmp.c strtol.c strtoul.c strtoll.c strtoull.c llstr.c strnlen.c ctype.c ctype-simple.c ctype-mb.c ctype-big5.c ctype-czech.c ctype-euc_kr.c ctype-gb2312.c ctype-gbk.c ctype-sjis.c ctype-tis620.c ctype-ujis.c ctype-utf8.c ctype-ucs2.c ctype-win1250ch.c ctype-bin.c ctype-latin1.c my_vsnprintf.c xml.c ctype-extra.c my_strtoll10.c
CSRCS
=
strxmov.c bmove_upp.c strappend.c strcont.c strend.c strfill.c strcend.c is_prefix.c strstr.c strinstr.c strmake.c strnmov.c strmov.c longlong2str.c bfill.c bmove.c bmove512.c bchange.c strxnmov.c int2str.c str2int.c r_strinstr.c strtod.c bcmp.c strtol.c strtoul.c strtoll.c strtoull.c llstr.c strnlen.c ctype.c ctype-simple.c ctype-mb.c ctype-big5.c ctype-czech.c ctype-euc_kr.c ctype-gb2312.c ctype-gbk.c ctype-sjis.c ctype-tis620.c ctype-ujis.c ctype-utf8.c ctype-ucs2.c ctype-
uca.c ctype-
win1250ch.c ctype-bin.c ctype-latin1.c my_vsnprintf.c xml.c ctype-extra.c my_strtoll10.c
endif
endif
...
...
@@ -44,7 +44,7 @@ DISTCLEANFILES = ctype_autoconf.c
# Default charset definitions
EXTRA_DIST
=
ctype-big5.c ctype-czech.c ctype-euc_kr.c ctype-win1250ch.c
\
ctype-gb2312.c ctype-gbk.c ctype-sjis.c ctype-utf8.c
\
ctype-ucs2.c ctype-tis620.c ctype-ujis.c
\
ctype-ucs2.c ctype-
uca.c ctype-
tis620.c ctype-ujis.c
\
xml.c strto.c strings-x86.s
\
longlong2str.c longlong2str-x86.s
\
my_strtoll10.c my_strtoll10-x86.s
\
...
...
strings/ctype-uca.c
0 → 100644
View file @
3827fa55
This diff is collapsed.
Click to expand it.
strings/ctype-ucs2.c
View file @
3827fa55
...
...
@@ -1364,8 +1364,6 @@ my_bool my_like_range_ucs2(CHARSET_INFO *cs,
return
0
;
}
extern
MY_COLLATION_HANDLER
my_collation_uca_handler
;
static
MY_COLLATION_HANDLER
my_collation_ucs2_general_ci_handler
=
{
my_strnncoll_ucs2
,
...
...
@@ -1443,6 +1441,29 @@ CHARSET_INFO my_charset_ucs2_general_ci=
&
my_collation_ucs2_general_ci_handler
};
CHARSET_INFO
my_charset_ucs2_general_uca
=
{
45
,
0
,
0
,
/* number */
MY_CS_COMPILED
|
MY_CS_STRNXFRM
|
MY_CS_UNICODE
|
MY_CS_NONTEXT
,
"ucs2"
,
/* cs name */
"ucs2_general_uca"
,
/* name */
""
,
/* comment */
ctype_ucs2
,
/* ctype */
to_lower_ucs2
,
/* to_lower */
to_upper_ucs2
,
/* to_upper */
to_upper_ucs2
,
/* sort_order */
NULL
,
/* tab_to_uni */
NULL
,
/* tab_from_uni */
""
,
""
,
8
,
/* strxfrm_multiply */
2
,
/* mbminlen */
2
,
/* mbmaxlen */
9
,
/* min_sort_char */
0xFFFF
,
/* max_sort_char */
&
my_charset_ucs2_handler
,
&
my_collation_ucs2_uca_handler
};
CHARSET_INFO
my_charset_ucs2_bin
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment