1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +03:00

Import ndb varsize

This commit is contained in:
jonas@perch.ndb.mysql.com
2005-11-07 12:19:28 +01:00
parent 0a160a8416
commit 88fbfc489d
229 changed files with 35959 additions and 18725 deletions

View File

@@ -47,6 +47,9 @@ public:
/** @brief Checks if the string is empty */
bool empty() const;
/** @brief Clear a string */
void clear();
/** @brief Convert to uppercase */
BaseString& ndb_toupper();
@@ -206,6 +209,15 @@ BaseString::empty() const
return m_len == 0;
}
inline void
BaseString::clear()
{
delete[] m_chr;
m_chr = new char[1];
m_chr[0] = 0;
m_len = 0;
}
inline BaseString&
BaseString::ndb_toupper() {
for(unsigned i = 0; i < length(); i++)