~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/temporal_format.h

  • Committer: Brian Aker
  • Date: 2009-02-21 00:18:15 UTC
  • Revision ID: brian@tangent.org-20090221001815-x20e8h71e984lvs1
Completion (?) of uint conversion.

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
143
145
 * is initialized on server init.
144
146
 */
145
147
bool init_temporal_formats();
146
 
/** 
147
 
 * Frees all memory allocated for temporal format objects
148
 
 */
149
 
void deinit_temporal_formats();
150
 
 
151
 
} /* end namespace drizzled */
152
 
 
153
 
#endif /* DRIZZLED_TEMPORAL_FORMAT_H */
 
148
 
 
149
#endif /* DRIZZLED_TEMPORAL_FORMAT_MATCH_H */