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
701b6463
Commit
701b6463
authored
Oct 21, 2004
by
bar@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ctype-uca.c:
Optimization: move "space padding" code outside the loop
parent
f3696879
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
28 deletions
+27
-28
strings/ctype-uca.c
strings/ctype-uca.c
+27
-28
No files found.
strings/ctype-uca.c
View file @
701b6463
...
...
@@ -7099,38 +7099,37 @@ static int my_strnncollsp_uca(CHARSET_INFO *cs,
{
s_res
=
scanner_handler
->
next
(
&
sscanner
);
t_res
=
scanner_handler
->
next
(
&
tscanner
);
}
while
(
s_res
==
t_res
&&
s_res
>
0
);
if
(
s_res
>
0
&&
t_res
<
0
)
{
/* Calculate weight for SPACE character */
t_res
=
cs
->
sort_order_big
[
0
][
0x20
*
cs
->
sort_order
[
0
]];
if
(
s_res
>
0
&&
t_res
<
0
)
{
/* Calculate weight for SPACE character */
t_res
=
cs
->
sort_order_big
[
0
][
0x20
*
cs
->
sort_order
[
0
]];
/* compare the first string to spaces */
do
{
if
(
s_res
!=
t_res
)
return
(
s_res
-
t_res
);
s_res
=
scanner_handler
->
next
(
&
sscanner
);
}
while
(
s_res
>
0
);
return
0
;
}
if
(
s_res
<
0
&&
t_res
>
0
)
/* compare the first string to spaces */
do
{
/* Calculate weight for SPACE character */
s_res
=
cs
->
sort_order_big
[
0
][
0x20
*
cs
->
sort_order
[
0
]];
/* compare the second string to spaces */
do
{
if
(
s_res
!=
t_res
)
return
(
s_res
-
t_res
);
t_res
=
scanner_handler
->
next
(
&
tscanner
);
}
while
(
t_res
>
0
);
return
0
;
}
if
(
s_res
!=
t_res
)
return
(
s_res
-
t_res
);
s_res
=
scanner_handler
->
next
(
&
sscanner
);
}
while
(
s_res
>
0
);
return
0
;
}
}
while
(
s_res
==
t_res
&&
s_res
>
0
);
if
(
s_res
<
0
&&
t_res
>
0
)
{
/* Calculate weight for SPACE character */
s_res
=
cs
->
sort_order_big
[
0
][
0x20
*
cs
->
sort_order
[
0
]];
/* compare the second string to spaces */
do
{
if
(
s_res
!=
t_res
)
return
(
s_res
-
t_res
);
t_res
=
scanner_handler
->
next
(
&
tscanner
);
}
while
(
t_res
>
0
);
return
0
;
}
return
(
s_res
-
t_res
);
}
...
...
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