123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- #ifndef SLRE_HEADER_DEFINED
- #define SLRE_HEADER_DEFINED
- struct slre {
- unsigned char code[256];
- unsigned char data[256];
- int code_size;
- int data_size;
- int num_caps;
- int anchored;
- const char *err_str;
- };
- struct cap {
- const char *ptr;
- int len;
- };
- int slre_compile(struct slre *, const char *re);
- int slre_match(const struct slre *, const char *buf, int buf_len,
- struct cap *captured_substrings);
- #ifdef SLRE_TEST
- void slre_dump(const struct slre *r, FILE *fp);
- #endif
- #endif
|