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
b9b3f467
Commit
b9b3f467
authored
Aug 08, 2002
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge pzaitsev@work.mysql.com:/home/bk/mysql-4.0
into mysql.com:/home/pz/mysql/mysql-4.0-root
parents
b1516966
0fdc49bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
4 deletions
+39
-4
mysys/mf_casecnv.c
mysys/mf_casecnv.c
+39
-4
No files found.
mysys/mf_casecnv.c
View file @
b9b3f467
...
...
@@ -28,7 +28,21 @@
#include <m_string.h>
#endif
/* string to uppercase */
/*
Upcase string
SYNOPSIS
str IN/OUT String to upcase
RETURN VALUE
none
DESCRIPTION
Function changes input parameter so all chars it consist from
are replaced with matching one in upper case.
String should be writable with exception read-only empty string
constant is handled correctly.
*/
void
caseup_str
(
my_string
str
)
{
...
...
@@ -45,11 +59,29 @@ void caseup_str(my_string str)
}
else
#endif
while
((
*
str
=
toupper
(
*
str
))
!=
0
)
while
(
*
str
!=
0
)
/* iterate till the end of string */
{
*
str
=
toupper
(
*
str
);
str
++
;
}
}
/* caseup_str */
/* string to lowercase */
/*
Downcase string
SYNOPSIS
str IN/OUT String to downcase
RETURN VALUE
none
DESCRIPTION
Function changes input parameter so all chars it consist from
are replaced with matching one in lower case.
String should be writable with exception read-only empty string
constant is handled correctly.
*/
void
casedn_str
(
my_string
str
)
{
...
...
@@ -66,8 +98,11 @@ void casedn_str(my_string str)
}
else
#endif
while
((
*
str
=
tolower
(
*
str
))
!=
0
)
while
(
*
str
!=
0
)
/* iterate till the end of string */
{
*
str
=
tolower
(
*
str
);
str
++
;
}
}
/* casedn_str */
...
...
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