diff options
author | unknown <tomas@poseidon.ndb.mysql.com> | 2004-12-07 15:39:46 +0000 |
---|---|---|
committer | unknown <tomas@poseidon.ndb.mysql.com> | 2004-12-07 15:39:46 +0000 |
commit | 96d6a116316e15c7684ae1ad8ff639f4e768e9fe (patch) | |
tree | ff7e05c7cc8494fa152c6dd099649113e17f7aeb /ndb/include/util | |
parent | 835afc54ec5cb98823689f38df916fbc35d0f8d8 (diff) | |
download | mariadb-git-96d6a116316e15c7684ae1ad8ff639f4e768e9fe.tar.gz |
added returntype BaseString& for ndb_upper and ndb_lower instead of void
uppercase printout
ndb/include/util/BaseString.hpp:
added returntype BaseString& for ndb_upper and ndb_lower instead of void
ndb/src/mgmclient/CommandInterpreter.cpp:
uppercase printout
Diffstat (limited to 'ndb/include/util')
-rw-r--r-- | ndb/include/util/BaseString.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ndb/include/util/BaseString.hpp b/ndb/include/util/BaseString.hpp index 066a24f294e..02a6a3b3e66 100644 --- a/ndb/include/util/BaseString.hpp +++ b/ndb/include/util/BaseString.hpp @@ -48,10 +48,10 @@ public: bool empty() const; /** @brief Convert to uppercase */ - void ndb_toupper(); + BaseString& ndb_toupper(); /** @brief Convert to lowercase */ - void ndb_tolower(); + BaseString& ndb_tolower(); /** @brief Assigns from a char * */ BaseString& assign(const char* s); @@ -206,16 +206,18 @@ BaseString::empty() const return m_len == 0; } -inline void +inline BaseString& BaseString::ndb_toupper() { for(unsigned i = 0; i < length(); i++) m_chr[i] = toupper(m_chr[i]); + return *this; } -inline void +inline BaseString& BaseString::ndb_tolower() { for(unsigned i = 0; i < length(); i++) m_chr[i] = tolower(m_chr[i]); + return *this; } inline bool |