~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/lex_input_stream.h

  • Committer: Brian Aker
  • Date: 2009-05-20 23:51:08 UTC
  • mfrom: (1022.2.18 mordred)
  • Revision ID: brian@gaz-20090520235108-nb5he1em112798pb
Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
  should be seen once out-of-bound data is removed.
35
35
*/
36
36
 
37
 
namespace drizzled
38
 
{
39
 
 
40
37
class Lex_input_stream
41
38
{
42
39
public:
271
268
  void body_utf8_start(Session *session, const char *begin_ptr);
272
269
  void body_utf8_append(const char *ptr);
273
270
  void body_utf8_append(const char *ptr, const char *end_ptr);
274
 
  void body_utf8_append_literal(const LEX_STRING *txt,
 
271
  void body_utf8_append_literal(Session *session,
 
272
                                const LEX_STRING *txt,
 
273
                                const CHARSET_INFO * const txt_cs,
275
274
                                const char *end_ptr);
276
275
 
277
276
  /** Current thread. */
358
357
  /** Current state of the lexical analyser. */
359
358
  enum my_lex_states next_state;
360
359
 
 
360
  /**
 
361
    Position of ';' in the stream, to delimit multiple queries.
 
362
    This delimiter is in the raw buffer.
 
363
  */
 
364
  const char *found_semicolon;
 
365
 
361
366
  /** Token character bitmaps, to detect 7bit strings. */
362
367
  unsigned char tok_bitmap;
363
368
 
383
388
    */
384
389
  const char *m_cpp_text_end;
385
390
 
 
391
  /**
 
392
    Character set specified by the character-set-introducer.
 
393
 
 
394
    NOTE: this member must be used within DRIZZLElex() function only.
 
395
  */
 
396
  const CHARSET_INFO *m_underscore_cs;
386
397
};
387
 
 
388
 
} /* namespace drizzled */
389
 
 
390
398
#endif /* DRIZZLED_LEX_INPUT_STREAM_H */