~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/lex_string.h

  • Committer: Mark Atwood
  • Date: 2011-10-13 18:28:03 UTC
  • mfrom: (2433.1.5 rf1)
  • Revision ID: me@mark.atwood.name-20111013182803-pbmb3r5emfxfrbvy
mergeĀ lp:~olafvdspek/drizzle/refactor2

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
{
33
33
  const char* begin() const
34
34
  {
35
 
    return str;
 
35
    return data();
36
36
  }
37
37
 
38
38
  const char* end() const
39
39
  {
40
 
    return str + length;
 
40
    return data() + size();
41
41
  }
42
42
 
43
43
  const char* data() const
56
56
    length = s;
57
57
  }
58
58
 
59
 
  void assign(char* d, size_t s)
60
 
  {
61
 
    str= d;
62
 
    length = s;
63
 
  }
64
 
 
65
59
  char* str;
66
60
  size_t length;
67
61
};