libarmutils  1.4
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups
regex_time.h File Reference

Regex Time Utilities. More...

Go to the source code of this file.

Data Structures

struct  RETime
 Regular Expression with Time Format Codes. More...
struct  RETimeRes
 Result RETime pattern match. More...
struct  RETimeList
 List of Regular Expression with Time Format Codes. More...

Macros

#define RETIME_MAX_SUBSTR_LENGTH   128
 maximum length of a parsed substring
#define RETIME_MAX_NSUBS   32
 maximum number of subexpressions

Functions

RETimeretime_compile (const char *pattern, int flags)
 Compile a regex/time pattern.
int retime_execute (RETime *retime, const char *string, RETimeRes *res)
 Compare a string with a compiled regex/time pattern.
void retime_free (RETime *retime)
 Free a RETime structure.
time_t retime_get_secs1970 (RETimeRes *res)
 Get the result from a regex/time pattern match.
timeval_t retime_get_timeval (RETimeRes *res)
 Get the result from a regex/time pattern match.
RETimeListretime_list_compile (int npatterns, const char **patterns, int flags)
 Compile a list of regex/time patterns.
int retime_list_execute (RETimeList *retime_list, const char *string, RETimeRes *res)
 Compare a string with a list of regex/time patterns.
void retime_list_free (RETimeList *retime_list)
 Free a RETimeList Structure.

Detailed Description

Regex Time Utilities.

Definition in file regex_time.h.