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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e42fe498
Commit
e42fe498
authored
Mar 29, 2002
by
bar@gw.udmsearch.izhnet.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Big5 conversion routines
parent
1c4138bf
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5839 additions
and
9 deletions
+5839
-9
include/m_ctype.h
include/m_ctype.h
+14
-4
sql/init.cc
sql/init.cc
+1
-1
strings/ctype-big5.c
strings/ctype-big5.c
+5822
-2
strings/ctype.c
strings/ctype.c
+2
-2
No files found.
include/m_ctype.h
View file @
e42fe498
...
@@ -120,10 +120,8 @@ extern void my_casedn_8bit(CHARSET_INFO *, char *, uint);
...
@@ -120,10 +120,8 @@ extern void my_casedn_8bit(CHARSET_INFO *, char *, uint);
extern
int
my_strcasecmp_8bit
(
CHARSET_INFO
*
cs
,
const
char
*
,
const
char
*
);
extern
int
my_strcasecmp_8bit
(
CHARSET_INFO
*
cs
,
const
char
*
,
const
char
*
);
extern
int
my_strncasecmp_8bit
(
CHARSET_INFO
*
cs
,
const
char
*
,
const
char
*
,
uint
);
extern
int
my_strncasecmp_8bit
(
CHARSET_INFO
*
cs
,
const
char
*
,
const
char
*
,
uint
);
int
my_mb_wc_8bit
(
CHARSET_INFO
*
cs
,
my_wc_t
*
wc
,
int
my_mb_wc_8bit
(
CHARSET_INFO
*
cs
,
my_wc_t
*
wc
,
const
uchar
*
s
,
const
uchar
*
e
);
const
unsigned
char
*
s
,
const
unsigned
char
*
e
);
int
my_wc_mb_8bit
(
CHARSET_INFO
*
cs
,
my_wc_t
wc
,
uchar
*
s
,
uchar
*
e
);
int
my_wc_mb_8bit
(
CHARSET_INFO
*
cs
,
my_wc_t
wc
,
unsigned
char
*
s
,
unsigned
char
*
e
);
#ifdef USE_MB
#ifdef USE_MB
...
@@ -146,6 +144,8 @@ extern my_bool my_like_range_big5(CHARSET_INFO *,const char *, uint, pchar, uint
...
@@ -146,6 +144,8 @@ extern my_bool my_like_range_big5(CHARSET_INFO *,const char *, uint, pchar, uint
extern
int
ismbchar_big5
(
CHARSET_INFO
*
,
const
char
*
,
const
char
*
);
extern
int
ismbchar_big5
(
CHARSET_INFO
*
,
const
char
*
,
const
char
*
);
extern
my_bool
ismbhead_big5
(
CHARSET_INFO
*
,
uint
);
extern
my_bool
ismbhead_big5
(
CHARSET_INFO
*
,
uint
);
extern
int
mbcharlen_big5
(
CHARSET_INFO
*
,
uint
);
extern
int
mbcharlen_big5
(
CHARSET_INFO
*
,
uint
);
int
my_mb_wc_big5
(
CHARSET_INFO
*
cs
,
my_wc_t
*
wc
,
const
uchar
*
s
,
const
uchar
*
e
);
int
my_wc_mb_big5
(
CHARSET_INFO
*
cs
,
my_wc_t
wc
,
uchar
*
s
,
uchar
*
e
);
#endif
#endif
#ifdef HAVE_CHARSET_czech
#ifdef HAVE_CHARSET_czech
...
@@ -164,6 +164,8 @@ extern uchar ctype_euc_kr[], to_lower_euc_kr[], to_upper_euc_kr[], sort_order_eu
...
@@ -164,6 +164,8 @@ extern uchar ctype_euc_kr[], to_lower_euc_kr[], to_upper_euc_kr[], sort_order_eu
extern
int
ismbchar_euc_kr
(
CHARSET_INFO
*
,
const
char
*
,
const
char
*
);
extern
int
ismbchar_euc_kr
(
CHARSET_INFO
*
,
const
char
*
,
const
char
*
);
extern
my_bool
ismbhead_euc_kr
(
CHARSET_INFO
*
,
uint
);
extern
my_bool
ismbhead_euc_kr
(
CHARSET_INFO
*
,
uint
);
extern
int
mbcharlen_euc_kr
(
CHARSET_INFO
*
,
uint
);
extern
int
mbcharlen_euc_kr
(
CHARSET_INFO
*
,
uint
);
int
my_mb_wc_euc_kr
(
CHARSET_INFO
*
cs
,
my_wc_t
*
wc
,
const
uchar
*
s
,
const
uchar
*
e
);
int
my_wc_mb_euc_kr
(
CHARSET_INFO
*
cs
,
my_wc_t
wc
,
uchar
*
s
,
uchar
*
e
);
#endif
#endif
#ifdef HAVE_CHARSET_gb2312
#ifdef HAVE_CHARSET_gb2312
...
@@ -172,6 +174,8 @@ extern uchar ctype_gb2312[], to_lower_gb2312[], to_upper_gb2312[], sort_order_gb
...
@@ -172,6 +174,8 @@ extern uchar ctype_gb2312[], to_lower_gb2312[], to_upper_gb2312[], sort_order_gb
extern
int
ismbchar_gb2312
(
CHARSET_INFO
*
,
const
char
*
,
const
char
*
);
extern
int
ismbchar_gb2312
(
CHARSET_INFO
*
,
const
char
*
,
const
char
*
);
extern
my_bool
ismbhead_gb2312
(
CHARSET_INFO
*
,
uint
);
extern
my_bool
ismbhead_gb2312
(
CHARSET_INFO
*
,
uint
);
extern
int
mbcharlen_gb2312
(
CHARSET_INFO
*
,
uint
);
extern
int
mbcharlen_gb2312
(
CHARSET_INFO
*
,
uint
);
int
my_mb_wc_gb2312
(
CHARSET_INFO
*
cs
,
my_wc_t
*
wc
,
const
uchar
*
s
,
const
uchar
*
e
);
int
my_wc_mb_gb2312
(
CHARSET_INFO
*
cs
,
my_wc_t
wc
,
uchar
*
s
,
uchar
*
e
);
#endif
#endif
#ifdef HAVE_CHARSET_gbk
#ifdef HAVE_CHARSET_gbk
...
@@ -184,6 +188,8 @@ extern my_bool my_like_range_gbk(CHARSET_INFO *, const char *, uint, pchar, uint
...
@@ -184,6 +188,8 @@ extern my_bool my_like_range_gbk(CHARSET_INFO *, const char *, uint, pchar, uint
extern
int
ismbchar_gbk
(
CHARSET_INFO
*
,
const
char
*
,
const
char
*
);
extern
int
ismbchar_gbk
(
CHARSET_INFO
*
,
const
char
*
,
const
char
*
);
extern
my_bool
ismbhead_gbk
(
CHARSET_INFO
*
,
uint
);
extern
my_bool
ismbhead_gbk
(
CHARSET_INFO
*
,
uint
);
extern
int
mbcharlen_gbk
(
CHARSET_INFO
*
,
uint
);
extern
int
mbcharlen_gbk
(
CHARSET_INFO
*
,
uint
);
int
my_mb_wc_gbk
(
CHARSET_INFO
*
cs
,
my_wc_t
*
wc
,
const
uchar
*
s
,
const
uchar
*
e
);
int
my_wc_mb_gbk
(
CHARSET_INFO
*
cs
,
my_wc_t
wc
,
uchar
*
s
,
uchar
*
e
);
#endif
#endif
#ifdef HAVE_CHARSET_latin1_de
#ifdef HAVE_CHARSET_latin1_de
...
@@ -205,6 +211,8 @@ extern my_bool my_like_range_sjis(CHARSET_INFO *, const char *, uint, pchar, uin
...
@@ -205,6 +211,8 @@ extern my_bool my_like_range_sjis(CHARSET_INFO *, const char *, uint, pchar, uin
extern
int
ismbchar_sjis
(
CHARSET_INFO
*
,
const
char
*
,
const
char
*
);
extern
int
ismbchar_sjis
(
CHARSET_INFO
*
,
const
char
*
,
const
char
*
);
extern
my_bool
ismbhead_sjis
(
CHARSET_INFO
*
,
uint
);
extern
my_bool
ismbhead_sjis
(
CHARSET_INFO
*
,
uint
);
extern
int
mbcharlen_sjis
(
CHARSET_INFO
*
,
uint
);
extern
int
mbcharlen_sjis
(
CHARSET_INFO
*
,
uint
);
int
my_mb_wc_sjis
(
CHARSET_INFO
*
cs
,
my_wc_t
*
wc
,
const
uchar
*
s
,
const
uchar
*
e
);
int
my_wc_mb_sjis
(
CHARSET_INFO
*
cs
,
my_wc_t
wc
,
uchar
*
s
,
uchar
*
e
);
#endif
#endif
#ifdef HAVE_CHARSET_tis620
#ifdef HAVE_CHARSET_tis620
...
@@ -222,6 +230,8 @@ extern uchar ctype_ujis[], to_lower_ujis[], to_upper_ujis[], sort_order_ujis[];
...
@@ -222,6 +230,8 @@ extern uchar ctype_ujis[], to_lower_ujis[], to_upper_ujis[], sort_order_ujis[];
extern
int
ismbchar_ujis
(
CHARSET_INFO
*
,
const
char
*
,
const
char
*
);
extern
int
ismbchar_ujis
(
CHARSET_INFO
*
,
const
char
*
,
const
char
*
);
extern
my_bool
ismbhead_ujis
(
CHARSET_INFO
*
,
uint
);
extern
my_bool
ismbhead_ujis
(
CHARSET_INFO
*
,
uint
);
extern
int
mbcharlen_ujis
(
CHARSET_INFO
*
,
uint
);
extern
int
mbcharlen_ujis
(
CHARSET_INFO
*
,
uint
);
int
my_mb_wc_euc_jp
(
CHARSET_INFO
*
cs
,
my_wc_t
*
wc
,
const
uchar
*
s
,
const
uchar
*
e
);
int
my_wc_mb_euc_jp
(
CHARSET_INFO
*
cs
,
my_wc_t
wc
,
uchar
*
s
,
uchar
*
e
);
#endif
#endif
#ifdef HAVE_CHARSET_utf8
#ifdef HAVE_CHARSET_utf8
...
...
sql/init.cc
View file @
e42fe498
...
@@ -60,7 +60,7 @@ void unireg_init(ulong options)
...
@@ -60,7 +60,7 @@ void unireg_init(ulong options)
uchar
max_char
;
uchar
max_char
;
if
(
!
cs
->
sort_order
)
if
(
!
cs
->
sort_order
)
continue
;
continue
;
cs
->
sort_order
[(
uchar
)
cs
->
max_sort_char
];
max_char
=
cs
->
sort_order
[(
uchar
)
cs
->
max_sort_char
];
for
(
i
=
0
;
i
<
256
;
i
++
)
for
(
i
=
0
;
i
<
256
;
i
++
)
{
{
if
((
uchar
)
cs
->
sort_order
[
i
]
>
max_char
)
if
((
uchar
)
cs
->
sort_order
[
i
]
>
max_char
)
...
...
strings/ctype-big5.c
View file @
e42fe498
This diff is collapsed.
Click to expand it.
strings/ctype.c
View file @
e42fe498
...
@@ -2848,8 +2848,8 @@ CHARSET_INFO compiled_charsets[] = {
...
@@ -2848,8 +2848,8 @@ CHARSET_INFO compiled_charsets[] = {
ismbchar_big5
,
ismbchar_big5
,
ismbhead_big5
,
ismbhead_big5
,
mbcharlen_big5
,
mbcharlen_big5
,
NULL
,
/* mb_wc */
my_mb_wc_big5
,
/* mb_wc */
NULL
,
/* wc_mb */
my_wc_mb_big5
,
/* wc_mb */
my_caseup_str_mb
,
my_caseup_str_mb
,
my_casedn_str_mb
,
my_casedn_str_mb
,
my_caseup_mb
,
my_caseup_mb
,
...
...
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