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
10ce930c
Commit
10ce930c
authored
Jun 14, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UTF8 UCA based collations.
parent
25e262a0
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
737 additions
and
56 deletions
+737
-56
mysys/charset-def.c
mysys/charset-def.c
+33
-1
strings/ctype-uca.c
strings/ctype-uca.c
+701
-51
strings/ctype-utf8.c
strings/ctype-utf8.c
+3
-4
No files found.
mysys/charset-def.c
View file @
10ce930c
...
@@ -40,6 +40,24 @@ extern CHARSET_INFO my_charset_ucs2_slovak_uca_ci;
...
@@ -40,6 +40,24 @@ extern CHARSET_INFO my_charset_ucs2_slovak_uca_ci;
extern
CHARSET_INFO
my_charset_ucs2_spanish2_uca_ci
;
extern
CHARSET_INFO
my_charset_ucs2_spanish2_uca_ci
;
#endif
#endif
#ifdef HAVE_CHARSET_utf8
extern
CHARSET_INFO
my_charset_utf8_general_uca_ci
;
extern
CHARSET_INFO
my_charset_utf8_icelandic_uca_ci
;
extern
CHARSET_INFO
my_charset_utf8_latvian_uca_ci
;
extern
CHARSET_INFO
my_charset_utf8_romanian_uca_ci
;
extern
CHARSET_INFO
my_charset_utf8_slovenian_uca_ci
;
extern
CHARSET_INFO
my_charset_utf8_polish_uca_ci
;
extern
CHARSET_INFO
my_charset_utf8_estonian_uca_ci
;
extern
CHARSET_INFO
my_charset_utf8_spanish_uca_ci
;
extern
CHARSET_INFO
my_charset_utf8_swedish_uca_ci
;
extern
CHARSET_INFO
my_charset_utf8_turkish_uca_ci
;
extern
CHARSET_INFO
my_charset_utf8_czech_uca_ci
;
extern
CHARSET_INFO
my_charset_utf8_danish_uca_ci
;
extern
CHARSET_INFO
my_charset_utf8_lithuanian_uca_ci
;
extern
CHARSET_INFO
my_charset_utf8_slovak_uca_ci
;
extern
CHARSET_INFO
my_charset_utf8_spanish2_uca_ci
;
#endif
my_bool
init_compiled_charsets
(
myf
flags
__attribute__
((
unused
)))
my_bool
init_compiled_charsets
(
myf
flags
__attribute__
((
unused
)))
{
{
CHARSET_INFO
*
cs
;
CHARSET_INFO
*
cs
;
...
@@ -92,7 +110,6 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused)))
...
@@ -92,7 +110,6 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused)))
add_compiled_collation
(
&
my_charset_ucs2_general_ci
);
add_compiled_collation
(
&
my_charset_ucs2_general_ci
);
add_compiled_collation
(
&
my_charset_ucs2_bin
);
add_compiled_collation
(
&
my_charset_ucs2_bin
);
add_compiled_collation
(
&
my_charset_ucs2_general_uca
);
add_compiled_collation
(
&
my_charset_ucs2_general_uca
);
add_compiled_collation
(
&
my_charset_ucs2_general_uca
);
add_compiled_collation
(
&
my_charset_ucs2_icelandic_uca_ci
);
add_compiled_collation
(
&
my_charset_ucs2_icelandic_uca_ci
);
add_compiled_collation
(
&
my_charset_ucs2_latvian_uca_ci
);
add_compiled_collation
(
&
my_charset_ucs2_latvian_uca_ci
);
add_compiled_collation
(
&
my_charset_ucs2_romanian_uca_ci
);
add_compiled_collation
(
&
my_charset_ucs2_romanian_uca_ci
);
...
@@ -117,6 +134,21 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused)))
...
@@ -117,6 +134,21 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused)))
#ifdef HAVE_CHARSET_utf8
#ifdef HAVE_CHARSET_utf8
add_compiled_collation
(
&
my_charset_utf8_general_ci
);
add_compiled_collation
(
&
my_charset_utf8_general_ci
);
add_compiled_collation
(
&
my_charset_utf8_bin
);
add_compiled_collation
(
&
my_charset_utf8_bin
);
add_compiled_collation
(
&
my_charset_utf8_general_uca_ci
);
add_compiled_collation
(
&
my_charset_utf8_icelandic_uca_ci
);
add_compiled_collation
(
&
my_charset_utf8_latvian_uca_ci
);
add_compiled_collation
(
&
my_charset_utf8_romanian_uca_ci
);
add_compiled_collation
(
&
my_charset_utf8_slovenian_uca_ci
);
add_compiled_collation
(
&
my_charset_utf8_polish_uca_ci
);
add_compiled_collation
(
&
my_charset_utf8_estonian_uca_ci
);
add_compiled_collation
(
&
my_charset_utf8_spanish_uca_ci
);
add_compiled_collation
(
&
my_charset_utf8_swedish_uca_ci
);
add_compiled_collation
(
&
my_charset_utf8_turkish_uca_ci
);
add_compiled_collation
(
&
my_charset_utf8_czech_uca_ci
);
add_compiled_collation
(
&
my_charset_utf8_danish_uca_ci
);
add_compiled_collation
(
&
my_charset_utf8_lithuanian_uca_ci
);
add_compiled_collation
(
&
my_charset_utf8_slovak_uca_ci
);
add_compiled_collation
(
&
my_charset_utf8_spanish2_uca_ci
);
#endif
#endif
/* Copy compiled charsets */
/* Copy compiled charsets */
...
...
strings/ctype-uca.c
View file @
10ce930c
This diff is collapsed.
Click to expand it.
strings/ctype-utf8.c
View file @
10ce930c
...
@@ -2057,7 +2057,7 @@ static MY_COLLATION_HANDLER my_collation_ci_handler =
...
@@ -2057,7 +2057,7 @@ static MY_COLLATION_HANDLER my_collation_ci_handler =
my_hash_sort_utf8
my_hash_sort_utf8
};
};
static
MY_CHARSET_HANDLER
my_charset
_handler
=
MY_CHARSET_HANDLER
my_charset_utf8
_handler
=
{
{
NULL
,
/* init */
NULL
,
/* init */
my_ismbchar_utf8
,
my_ismbchar_utf8
,
...
@@ -2109,7 +2109,7 @@ CHARSET_INFO my_charset_utf8_general_ci=
...
@@ -2109,7 +2109,7 @@ CHARSET_INFO my_charset_utf8_general_ci=
3
,
/* mbmaxlen */
3
,
/* mbmaxlen */
0
,
/* min_sort_char */
0
,
/* min_sort_char */
255
,
/* max_sort_char */
255
,
/* max_sort_char */
&
my_charset_handler
,
&
my_charset_
utf8_
handler
,
&
my_collation_ci_handler
&
my_collation_ci_handler
};
};
...
@@ -2137,13 +2137,12 @@ CHARSET_INFO my_charset_utf8_bin=
...
@@ -2137,13 +2137,12 @@ CHARSET_INFO my_charset_utf8_bin=
3
,
/* mbmaxlen */
3
,
/* mbmaxlen */
0
,
/* min_sort_char */
0
,
/* min_sort_char */
255
,
/* max_sort_char */
255
,
/* max_sort_char */
&
my_charset_handler
,
&
my_charset_
utf8_
handler
,
&
my_collation_mb_bin_handler
&
my_collation_mb_bin_handler
};
};
#ifdef MY_TEST_UTF8
#ifdef MY_TEST_UTF8
#include <stdio.h>
#include <stdio.h>
static
void
test_mb
(
CHARSET_INFO
*
cs
,
uchar
*
s
)
static
void
test_mb
(
CHARSET_INFO
*
cs
,
uchar
*
s
)
...
...
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