#include <X11/Intrinsic.h>
#ifndef NEDIT_REGULAREXP_H_INCLUDED
#define NEDIT_REGULAREXP_H_INCLUDED
#define NSUBEXP 50
typedef struct regexp {
char *startp [NSUBEXP];
char *endp [NSUBEXP];
char *extentpBW;
char *extentpFW;
int top_branch;
char match_start;
char anchor;
char program [1];
} regexp;
typedef enum {
REDFLT_STANDARD = 0,
REDFLT_CASE_INSENSITIVE = 1
} RE_DEFAULT_FLAG;
regexp * CompileRE (
const char *exp,
char **errorText,
int defaultFlags);
int ExecRE (
regexp *prog,
const char *string,
const char *end,
int reverse,
char prev_char,
char succ_char,
const char *delimiters,
const char *look_behind_to,
const char *match_till);
Boolean SubstituteRE(const regexp* prog, const char* source, char* dest,
int max);
void SetREDefaultWordDelimiters (
char *delimiters);
#endif