~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/lex_string.h

  • Committer: Olaf van der Spek
  • Date: 2011-10-14 09:23:40 UTC
  • mto: This revision was merged to the branch mainline in revision 2438.
  • Revision ID: olafvdspek@gmail.com-20111014092340-phpah1o0umps7e63
Use size()

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
  size_t size() const
49
49
  {
50
 
    return length;
 
50
    return length_;
51
51
  }
52
52
 
53
53
  void assign(const char* d, size_t s)
54
54
  {
55
55
    str= const_cast<char*>(d);
56
 
    length = s;
 
56
    length_ = s;
57
57
  }
58
58
 
59
59
  char* str;
60
 
  size_t length;
 
60
  size_t length_;
61
61
};
62
62
 
63
63
inline const lex_string_t &null_lex_string()