~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/temporal_format.h

  • Committer: Monty Taylor
  • Date: 2009-01-30 04:45:55 UTC
  • mfrom: (779.4.10 devel)
  • mto: (779.7.3 devel)
  • mto: This revision was merged to the branch mainline in revision 823.
  • Revision ID: mordred@inaugust.com-20090130044555-ntb3509c8o6e3sb5
MergedĀ fromĀ me.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
  uint32_t _minute_part_index;
59
59
  uint32_t _second_part_index;
60
60
  uint32_t _usecond_part_index;
 
61
  uint32_t _nsecond_part_index;
61
62
public:
62
63
  /**
63
64
   * Constructor which takes a regex string as
108
109
   */
109
110
  inline void set_second_part_index(int32_t index) {_second_part_index= ((index - 1) * 2) + 2;}
110
111
  /**
111
 
   * Sets the index for the second part of the pattern.
 
112
   * Sets the index for the microsecond part of the pattern.
112
113
   *
113
114
   * @param index of the temporal part
114
115
   */
115
116
  inline void set_usecond_part_index(int32_t index) {_usecond_part_index= ((index - 1) * 2) + 2;}
116
117
  /**
 
118
   * Sets the index for the nanosecond part of the pattern.
 
119
   *
 
120
   * @param index of the temporal part
 
121
   */
 
122
  inline void set_nsecond_part_index(int32_t index) {_nsecond_part_index= ((index - 1) * 2) + 2;}
 
123
  /**
117
124
   * Returns true or false whether a supplied
118
125
   * string matches the internal pattern for this
119
126
   * temporal format string.