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
cd833731
Commit
cd833731
authored
Dec 07, 2004
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added returntype BaseString& for ndb_upper and ndb_lower instead of void
uppercase printout
parent
5ede4c65
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
ndb/include/util/BaseString.hpp
ndb/include/util/BaseString.hpp
+6
-4
ndb/src/mgmclient/CommandInterpreter.cpp
ndb/src/mgmclient/CommandInterpreter.cpp
+1
-1
No files found.
ndb/include/util/BaseString.hpp
View file @
cd833731
...
@@ -48,10 +48,10 @@ public:
...
@@ -48,10 +48,10 @@ public:
bool
empty
()
const
;
bool
empty
()
const
;
/** @brief Convert to uppercase */
/** @brief Convert to uppercase */
void
ndb_toupper
();
BaseString
&
ndb_toupper
();
/** @brief Convert to lowercase */
/** @brief Convert to lowercase */
void
ndb_tolower
();
BaseString
&
ndb_tolower
();
/** @brief Assigns from a char * */
/** @brief Assigns from a char * */
BaseString
&
assign
(
const
char
*
s
);
BaseString
&
assign
(
const
char
*
s
);
...
@@ -206,16 +206,18 @@ BaseString::empty() const
...
@@ -206,16 +206,18 @@ BaseString::empty() const
return
m_len
==
0
;
return
m_len
==
0
;
}
}
inline
void
inline
BaseString
&
BaseString
::
ndb_toupper
()
{
BaseString
::
ndb_toupper
()
{
for
(
unsigned
i
=
0
;
i
<
length
();
i
++
)
for
(
unsigned
i
=
0
;
i
<
length
();
i
++
)
m_chr
[
i
]
=
toupper
(
m_chr
[
i
]);
m_chr
[
i
]
=
toupper
(
m_chr
[
i
]);
return
*
this
;
}
}
inline
void
inline
BaseString
&
BaseString
::
ndb_tolower
()
{
BaseString
::
ndb_tolower
()
{
for
(
unsigned
i
=
0
;
i
<
length
();
i
++
)
for
(
unsigned
i
=
0
;
i
<
length
();
i
++
)
m_chr
[
i
]
=
tolower
(
m_chr
[
i
]);
m_chr
[
i
]
=
tolower
(
m_chr
[
i
]);
return
*
this
;
}
}
inline
bool
inline
bool
...
...
ndb/src/mgmclient/CommandInterpreter.cpp
View file @
cd833731
...
@@ -1249,7 +1249,7 @@ CommandInterpreter::executeClusterLog(char* parameters)
...
@@ -1249,7 +1249,7 @@ CommandInterpreter::executeClusterLog(char* parameters)
printError
();
printError
();
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
ndbout
<<
item
<<
" "
<<
(
res_enable
?
"enabled"
:
"disabled"
)
<<
endl
;
ndbout
<<
BaseString
(
item
).
ndb_toupper
().
c_str
()
<<
" "
<<
(
res_enable
?
"enabled"
:
"disabled"
)
<<
endl
;
item
=
strtok_r
(
NULL
,
" "
,
&
tmpPtr
);
item
=
strtok_r
(
NULL
,
" "
,
&
tmpPtr
);
}
while
(
item
!=
NULL
);
}
while
(
item
!=
NULL
);
...
...
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