#include "config.h"
#include <assert.h>
#include <stdbool.h>
#include <stdint.h>
#include "prex.h"
#include "logging.h"
#include "memory.h"
Go to the source code of this file.
Data Structures | |
struct | PrexStorage |
A predefined / precompiled regex. More... | |
Macros | |
#define | PREX_MONTH "(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)" |
#define | PREX_DOW "(Mon|Tue|Wed|Thu|Fri|Sat|Sun)" |
#define | PREX_DOW_NOCASE |
#define | PREX_TIME "([[:digit:]]{2}:[[:digit:]]{2}:[[:digit:]]{2})" |
#define | PREX_YEAR "([[:digit:]]{4})" |
#define | UNR_PCTENC_SUBDEL "][[:alnum:]._~%!$&'()*+,;=" |
#define | PATH ":@/ " |
#define | QUERY_PART "^&=" |
#define | FWS " *" |
#define | C "(\\(.*\\))?" |
#define | CFWS FWS C FWS |
Functions | |
static struct PrexStorage * | prex (enum Prex which) |
Compile on demand and get data for a predefined regex. More... | |
Manage precompiled / predefined regular expressions
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file prex.c.
#define PREX_MONTH "(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)" |
#define PREX_DOW_NOCASE |
#define PREX_TIME "([[:digit:]]{2}:[[:digit:]]{2}:[[:digit:]]{2})" |
#define UNR_PCTENC_SUBDEL "][[:alnum:]._~%!$&'()*+,;=" |
#define PATH ":@/ " |
#define QUERY_PART "^&=" |
#define FWS " *" |
#define C "(\\(.*\\))?" |
|
static |
Compile on demand and get data for a predefined regex.
which | Which regex to get |
ptr | Pointer to a PrexStorage struct |
Definition at line 97 of file prex.c.