📄 regexp.h
字号:
head 2.1;access;symbols;locks; strict;comment @ * @;2.1date 95.10.24.15.46.14; author tsurace; state Release;branches;next 1.1;1.1date 95.10.12.19.55.42; author tsurace; state Beta;branches;next ;desc@Regular expression prototypesexit@2.1log@Roll.@text@/*
* Definitions etc. for regexp(3) routines.
*
* Caveat: this is V8 regexp(3) [actually, a reimplementation thereof],
* not the System V one.
*/
/* Refs count, struct rstr * and prototypes added by GBH */
/* $Id: regexp.h 1.1 1995/10/12 19:55:42 tsurace Beta tsurace $ */
#define NSUBEXP 10
typedef struct regexp {
int refs;
struct rstr *rs;
char *startp[NSUBEXP];
char *endp[NSUBEXP];
char regstart; /* Internal use only. */
char reganch; /* Internal use only. */
char *regmust; /* Internal use only. */
int regmlen; /* Internal use only. */
char program[1]; /* Unwarranted chumminess with compiler. */
} regexp;
extern regexp *regcomp();
extern int regexec();
extern void regsub();
extern void regerror();
#ifdef PROTOTYPES
regexp *regcomp(char *);
int regexec(regexp *, char *);
void regerror(char *);
#endif
@1.1log@Initial revision@text@d8 1a8 1/* $Id$ */@
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -