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:
@@ -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++)
|
||||
|
Reference in New Issue
Block a user