summaryrefslogtreecommitdiff
path: root/sql/vers_string.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-08-08 17:31:42 +0400
committerAlexander Barkov <bar@mariadb.com>2019-08-08 17:31:42 +0400
commit3e27677b596c03cb22a125fe799977d57c5dc0b4 (patch)
tree0a636918a1fc75739a176d57e10d3c0d1e07d3fc /sql/vers_string.h
parente98f3bcf53b815753ca65ea0aadf4cbabc398cae (diff)
downloadmariadb-git-3e27677b596c03cb22a125fe799977d57c5dc0b4.tar.gz
Cleanup: moving the definition of Lex_cstring from vers_string.h to lex_string.h
Diffstat (limited to 'sql/vers_string.h')
-rw-r--r--sql/vers_string.h37
1 files changed, 2 insertions, 35 deletions
diff --git a/sql/vers_string.h b/sql/vers_string.h
index e242036b53c..bde3f0dffed 100644
--- a/sql/vers_string.h
+++ b/sql/vers_string.h
@@ -17,6 +17,8 @@
#ifndef VERS_STRING_INCLUDED
#define VERS_STRING_INCLUDED
+#include "lex_string.h"
+
/*
LEX_CSTRING with comparison semantics.
*/
@@ -45,41 +47,6 @@ struct Compare_identifiers
}
};
-class Lex_cstring : public LEX_CSTRING
-{
- public:
- Lex_cstring()
- {
- str= NULL;
- length= 0;
- }
- Lex_cstring(const char *_str, size_t _len)
- {
- str= _str;
- length= _len;
- }
- Lex_cstring(const char *start, const char *end)
- {
- DBUG_ASSERT(start <= end);
- str= start;
- length= end - start;
- }
- void set(const char *_str, size_t _len)
- {
- str= _str;
- length= _len;
- }
-};
-
-
-class Lex_cstring_strlen: public Lex_cstring
-{
-public:
- Lex_cstring_strlen(const char *from)
- :Lex_cstring(from, from ? strlen(from) : 0)
- { }
-};
-
template <class Compare>
struct Lex_cstring_with_compare : public Lex_cstring