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
0d42d4e9
Commit
0d42d4e9
authored
Mar 23, 2016
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing unused code in ctype-bin5.c
parent
1170d23c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
48 deletions
+0
-48
strings/ctype-big5.c
strings/ctype-big5.c
+0
-48
No files found.
strings/ctype-big5.c
View file @
0d42d4e9
...
...
@@ -881,54 +881,6 @@ my_strnxfrm_big5(CHARSET_INFO *cs,
return
my_strxfrm_pad_desc_and_reverse
(
cs
,
d0
,
dst
,
de
,
nweights
,
flags
,
0
);
}
#if 0
static int my_strcoll_big5(const uchar *s1, const uchar *s2)
{
while (*s1 && *s2)
{
if (*(s1+1) && *(s2+1) && isbig5code(*s1,*(s1+1)) && isbig5code(*s2, *(s2+1)))
{
if (*s1 != *s2 || *(s1+1) != *(s2+1))
return ((int) big5code(*s1,*(s1+1)) -
(int) big5code(*s2,*(s2+1)));
s1 +=2;
s2 +=2;
} else if (sort_order_big5[(uchar) *s1++] != sort_order_big5[(uchar) *s2++])
return ((int) sort_order_big5[(uchar) s1[-1]] -
(int) sort_order_big5[(uchar) s2[-1]]);
}
return 0;
}
static int my_strxfrm_big5(uchar *dest, const uchar *src, int len)
{
uint16 e;
uchar *d = dest;
if (len < 1) return 0;
if (!*src)
{
*d = '\0';
return 0;
}
while (*src && (len > 1))
{
if (*(src+1) && isbig5code(*src, *(src+1)))
{
e = big5strokexfrm((uint16) big5code(*src, *(src+1)));
*d++ = big5head(e);
*d++ = big5tail(e);
src +=2;
len--;
} else
*d++ = sort_order_big5[(uchar) *src++];
}
*d = '\0';
return (int) (d-dest);
}
#endif
static
uint
mbcharlen_big5
(
CHARSET_INFO
*
cs
__attribute__
((
unused
)),
uint
c
)
{
...
...
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