Definition at line 38 of file temporal_format.h.
◆ TemporalFormat()
| drizzled::TemporalFormat::TemporalFormat |
( |
const char * | pattern | ) |
|
Constructor which takes a regex string as it's only parameter.
- Parameters
-
| Pattern | to use in matching |
Definition at line 45 of file temporal_format.cc.
◆ ~TemporalFormat()
| drizzled::TemporalFormat::~TemporalFormat |
( |
| ) |
|
◆ is_valid()
| bool drizzled::TemporalFormat::is_valid |
( |
| ) |
const |
|
inline |
Returns whether the instance is compiled and contains a valid regular expression.
Definition at line 69 of file temporal_format.h.
◆ matches()
| bool drizzled::TemporalFormat::matches |
( |
const char * | data, |
|
|
size_t | data_len, |
|
|
Temporal * | to ) |
Returns true or false whether a supplied string matches the internal pattern for this temporal format string.
- Parameters
-
| Subject | to match |
| Length | of subject string |
Definition at line 73 of file temporal_format.cc.
◆ set_day_part_index()
| void drizzled::TemporalFormat::set_day_part_index |
( |
int32_t | index | ) |
|
|
inline |
Sets the index for the day part of the pattern.
- Parameters
-
| index | of the temporal part |
Definition at line 87 of file temporal_format.h.
◆ set_hour_part_index()
| void drizzled::TemporalFormat::set_hour_part_index |
( |
int32_t | index | ) |
|
|
inline |
Sets the index for the hour part of the pattern.
- Parameters
-
| index | of the temporal part |
Definition at line 93 of file temporal_format.h.
◆ set_minute_part_index()
| void drizzled::TemporalFormat::set_minute_part_index |
( |
int32_t | index | ) |
|
|
inline |
Sets the index for the minute part of the pattern.
- Parameters
-
| index | of the temporal part |
Definition at line 99 of file temporal_format.h.
◆ set_month_part_index()
| void drizzled::TemporalFormat::set_month_part_index |
( |
int32_t | index | ) |
|
|
inline |
Sets the index for the month part of the pattern.
- Parameters
-
| index | of the temporal part |
Definition at line 81 of file temporal_format.h.
◆ set_nsecond_part_index()
| void drizzled::TemporalFormat::set_nsecond_part_index |
( |
int32_t | index | ) |
|
|
inline |
Sets the index for the nanosecond part of the pattern.
- Parameters
-
| index | of the temporal part |
Definition at line 117 of file temporal_format.h.
◆ set_second_part_index()
| void drizzled::TemporalFormat::set_second_part_index |
( |
int32_t | index | ) |
|
|
inline |
Sets the index for the second part of the pattern.
- Parameters
-
| index | of the temporal part |
Definition at line 105 of file temporal_format.h.
◆ set_usecond_part_index()
| void drizzled::TemporalFormat::set_usecond_part_index |
( |
int32_t | index | ) |
|
|
inline |
Sets the index for the microsecond part of the pattern.
- Parameters
-
| index | of the temporal part |
Definition at line 111 of file temporal_format.h.
◆ set_year_part_index()
| void drizzled::TemporalFormat::set_year_part_index |
( |
int32_t | index | ) |
|
|
inline |
Sets the index for the year part of the pattern.
- Parameters
-
| index | of the temporal part |
Definition at line 75 of file temporal_format.h.
◆ _day_part_index
| uint32_t drizzled::TemporalFormat::_day_part_index |
|
protected |
◆ _error
| int32_t drizzled::TemporalFormat::_error |
|
protected |
◆ _error_offset
| PCRE2_SIZE drizzled::TemporalFormat::_error_offset |
|
protected |
Any error encountered during compilation or matching
Definition at line 43 of file temporal_format.h.
◆ _hour_part_index
| uint32_t drizzled::TemporalFormat::_hour_part_index |
|
protected |
◆ _minute_part_index
| uint32_t drizzled::TemporalFormat::_minute_part_index |
|
protected |
◆ _month_part_index
| uint32_t drizzled::TemporalFormat::_month_part_index |
|
protected |
◆ _nsecond_part_index
| uint32_t drizzled::TemporalFormat::_nsecond_part_index |
|
protected |
◆ _pattern
| const char* drizzled::TemporalFormat::_pattern |
|
protected |
◆ _re
| pcre2_code* drizzled::TemporalFormat::_re |
|
protected |
◆ _second_part_index
| uint32_t drizzled::TemporalFormat::_second_part_index |
|
protected |
◆ _usecond_part_index
| uint32_t drizzled::TemporalFormat::_usecond_part_index |
|
protected |
◆ _year_part_index
| uint32_t drizzled::TemporalFormat::_year_part_index |
|
protected |
The documentation for this class was generated from the following files: