~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/temporal_format.h

Rename of handler to Cursor.  You would not believe how long I have wanted
to do that.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  Authors:
7
7
 *
28
28
 * Defines the API for matching datetime formats.
29
29
 */
30
30
 
31
 
#ifndef DRIZZLED_TEMPORAL_FORMAT_H
32
 
#define DRIZZLED_TEMPORAL_FORMAT_H
 
31
#ifndef DRIZZLED_TEMPORAL_FORMAT_MATCH_H
 
32
#define DRIZZLED_TEMPORAL_FORMAT_MATCH_H
33
33
 
34
34
#include PCRE_HEADER
35
35
 
49
49
  pcre *_re; /**< The compiled regular expression struct */
50
50
  int32_t _error_offset; /**< Any error encountered during compilation or matching */
51
51
  const char *_error;
 
52
  int32_t _match_vector[OUT_VECTOR_SIZE]; /**< Stores match substring indexes */
52
53
  /* Index of the pattern which is a specific temporal part */
53
54
  uint32_t _year_part_index;
54
55
  uint32_t _month_part_index;
130
131
  bool matches(const char *data, size_t data_len, Temporal *to);
131
132
};
132
133
 
 
134
} /* end namespace drizzled */
133
135
 
134
136
/**
135
137
 * Initializes the regular expressions used by the datetime
148
150
 */
149
151
void deinit_temporal_formats();
150
152
 
151
 
} /* end namespace drizzled */
152
 
 
153
 
#endif /* DRIZZLED_TEMPORAL_FORMAT_H */
 
153
#endif /* DRIZZLED_TEMPORAL_FORMAT_MATCH_H */