|
VPR-7.0
|
#include <stdio.h>#include <assert.h>#include <ctype.h>#include <stdarg.h>#include <stdlib.h>#include <string.h>#include "slre.h"
Include dependency graph for slre.c:Go to the source code of this file.
Data Structures | |
| struct | slre |
| struct | cap |
Enumerations | |
| enum | { END, BRANCH, ANY, EXACT, ANYOF, ANYBUT, OPEN, CLOSE, BOL, EOL, STAR, PLUS, STARQ, PLUSQ, QUEST, SPACE, NONSPACE, DIGIT } |
Functions | |
| static void | set_jump_offset (struct slre *r, int pc, int offset) |
| static void | emit (struct slre *r, int code) |
| static void | store_char_in_data (struct slre *r, int ch) |
| static void | exact (struct slre *r, const char **re) |
| static int | get_escape_char (const char **re) |
| static void | anyof (struct slre *r, const char **re) |
| static void | relocate (struct slre *r, int begin, int shift) |
| static void | quantifier (struct slre *r, int prev, int op) |
| static void | exact_one_char (struct slre *r, int ch) |
| static void | fixup_branch (struct slre *r, int fixup) |
| static void | compile (struct slre *r, const char **re) |
| static const char * | compile2 (struct slre *r, const char *re) |
| static const char * | match (const struct slre *, int, const char *, int, int *, struct cap *) |
| static void | loop_greedy (const struct slre *r, int pc, const char *s, int len, int *ofs) |
| static void | loop_non_greedy (const struct slre *r, int pc, const char *s, int len, int *ofs) |
| static int | is_any_of (const unsigned char *p, int len, const char *s, int *ofs) |
| static int | is_any_but (const unsigned char *p, int len, const char *s, int *ofs) |
| static int | lowercase (const char *s) |
| static int | casecmp (const void *p1, const void *p2, size_t len) |
| static const char * | match2 (const struct slre *r, const char *buf, int len, struct cap *caps) |
| static const char * | capture_float (const struct cap *cap, void *p, size_t len) |
| static const char * | capture_string (const struct cap *cap, void *p, size_t len) |
| static const char * | capture_int (const struct cap *cap, void *p, size_t len) |
| static const char * | capture (const struct cap *caps, int num_caps, va_list ap) |
| const char * | slre_match (enum slre_option options, const char *re, const char *buf, int buf_len,...) |
Variables | |
| static const char * | meta_characters = "|.*+?()[\\" |
| static const char * | error_no_match = "No match" |
| anonymous enum |
|
static |
|
static |
Definition at line 626 of file slre.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 329 of file slre.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 346 of file slre.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
Definition at line 404 of file slre.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 571 of file slre.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
|
static |
| const char* slre_match | ( | enum slre_option | options, |
| const char * | re, | ||
| const char * | buf, | ||
| int | buf_len, | ||
| ... | |||
| ) |
Definition at line 646 of file slre.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |