GOReg

GOReg

Functions

int go_regcomp ()
int go_regexec ()
size_t go_regerror ()
void go_regfree ()
const char * go_regexp_quote1 ()
void go_regexp_quote ()

Types and Values

#define GO_REG_OK
  GORegexp
typedef GORegoff
  GORegmatch

Description

Functions

go_regcomp ()

int
go_regcomp (GORegexp *preg,
            const char *pattern,
            int cflags);


go_regexec ()

int
go_regexec (const GORegexp *preg,
            const char *string,
            size_t nmatch,
            GORegmatch pmatch[],
            int eflags);


go_regerror ()

size_t
go_regerror (int errcode,
             const GORegexp *preg,
             char *errbuf,
             size_t errbuf_size);


go_regfree ()

void
go_regfree (GORegexp *preg);


go_regexp_quote1 ()

const char *
go_regexp_quote1 (GString *target,
                  const char *s);


go_regexp_quote ()

void
go_regexp_quote (GString *target,
                 const char *s);

Types and Values

GO_REG_OK

#define GO_REG_OK GO_REG_NOERROR


GORegexp

typedef struct {
  size_t re_nsub;
} GORegexp;


GORegoff

typedef int GORegoff;


GORegmatch

typedef struct {
  GORegoff rm_so, rm_eo;
} GORegmatch;