~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 10:07:18 UTC
  • mto: This revision was merged to the branch mainline in revision 2438.
  • Revision ID: olafvdspek@gmail.com-20111014100718-n1i5vtysh1gajn70
Use assign(), data() and size()

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
  const char* data() const
44
44
  {
45
 
    return str;
 
45
    return str_;
46
46
  }
47
47
 
48
48
  size_t size() const
52
52
 
53
53
  void assign(const char* d, size_t s)
54
54
  {
55
 
    str= const_cast<char*>(d);
 
55
    str_= const_cast<char*>(d);
56
56
    length_ = s;
57
57
  }
58
58
 
59
 
  char* str;
 
59
  char* str_;
60
60
  size_t length_;
61
61
};
62
62