~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/lex_input_stream.h

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#pragma once
 
20
#ifndef DRIZZLED_LEX_INPUT_STREAM_H
 
21
#define DRIZZLED_LEX_INPUT_STREAM_H
21
22
 
22
23
/**
23
24
  @brief This class represents the character input stream consumed during
33
34
  should be seen once out-of-bound data is removed.
34
35
*/
35
36
 
36
 
namespace drizzled {
 
37
namespace drizzled
 
38
{
37
39
 
38
40
class Lex_input_stream
39
41
{
40
42
public:
41
43
  Lex_input_stream(Session *session, const char* buff, unsigned int length);
 
44
  ~Lex_input_stream();
42
45
 
43
46
  /**
44
47
    Set the echo mode.
265
268
    return m_body_utf8_ptr - m_body_utf8;
266
269
  }
267
270
 
 
271
  void body_utf8_start(Session *session, const char *begin_ptr);
268
272
  void body_utf8_append(const char *ptr);
269
273
  void body_utf8_append(const char *ptr, const char *end_ptr);
270
274
  void body_utf8_append_literal(const LEX_STRING *txt,
367
371
    Starting position of the TEXT_STRING or IDENT in the pre-processed
368
372
    buffer.
369
373
 
370
 
    NOTE: this member must be used within base_sql_lex() function only.
 
374
    NOTE: this member must be used within DRIZZLElex() function only.
371
375
  */
372
376
  const char *m_cpp_text_start;
373
377
 
375
379
    Ending position of the TEXT_STRING or IDENT in the pre-processed
376
380
    buffer.
377
381
 
378
 
    NOTE: this member must be used within base_sql_lex() function only.
 
382
    NOTE: this member must be used within DRIZZLElex() function only.
379
383
    */
380
384
  const char *m_cpp_text_end;
381
385
 
383
387
 
384
388
} /* namespace drizzled */
385
389
 
 
390
#endif /* DRIZZLED_LEX_INPUT_STREAM_H */