NEURON
regexp.cpp File Reference
#include <../../nrnconf.h>
#include <stdio.h>
#include "hocdec.h"

Go to the source code of this file.

Macros

#define CABLESECTION   1
 
#define STAR   01
 
#define SUFF   '.'
 
#define TILDE   '~'
 
#define EREGEXP   24
 
#define error(enum)   hoc_execerror("search string format error", pattern)
 
#define CBRA   1
 
#define CCHR   2
 
#define CDOT   4
 
#define CCL   6
 
#define NCCL   8
 
#define CDOL   10
 
#define CEOF   11
 
#define CKET   12
 
#define INTRANGE   14
 
#define NBRA   5
 
#define ESIZE   256
 
#define eof   '\0'
 

Functions

static int advance (char *lp, char *ep)
 
static int hoc_cclass (char *set, char c, int af)
 
void hoc_regexp_compile (const char *pat)
 
int hoc_regexp_search (const char *tar)
 

Variables

static char expbuf [ESIZE+4]
 
static char * pattern = ""
 
static char * loc1
 
static char * loc2
 
static char * locs
 
static char * braslist [NBRA]
 
static char * braelist [NBRA]
 
static int circfl
 
static int int_range_start [NBRA]
 
static int int_range_stop [NBRA]
 

Macro Definition Documentation

◆ CABLESECTION

#define CABLESECTION   1

Definition at line 54 of file regexp.cpp.

◆ CBRA

#define CBRA   1

Definition at line 67 of file regexp.cpp.

◆ CCHR

#define CCHR   2

Definition at line 68 of file regexp.cpp.

◆ CCL

#define CCL   6

Definition at line 70 of file regexp.cpp.

◆ CDOL

#define CDOL   10

Definition at line 72 of file regexp.cpp.

◆ CDOT

#define CDOT   4

Definition at line 69 of file regexp.cpp.

◆ CEOF

#define CEOF   11

Definition at line 73 of file regexp.cpp.

◆ CKET

#define CKET   12

Definition at line 74 of file regexp.cpp.

◆ eof

#define eof   '\0'

Definition at line 80 of file regexp.cpp.

◆ EREGEXP

#define EREGEXP   24

Definition at line 65 of file regexp.cpp.

◆ error

#define error (   enum)    hoc_execerror("search string format error", pattern)

Definition at line 66 of file regexp.cpp.

◆ ESIZE

#define ESIZE   256

Definition at line 79 of file regexp.cpp.

◆ INTRANGE

#define INTRANGE   14

Definition at line 76 of file regexp.cpp.

◆ NBRA

#define NBRA   5

Definition at line 78 of file regexp.cpp.

◆ NCCL

#define NCCL   8

Definition at line 71 of file regexp.cpp.

◆ STAR

#define STAR   01

Definition at line 61 of file regexp.cpp.

◆ SUFF

#define SUFF   '.'

Definition at line 62 of file regexp.cpp.

◆ TILDE

#define TILDE   '~'

Definition at line 63 of file regexp.cpp.

Function Documentation

◆ advance()

static int advance ( char *  lp,
char *  ep 
)
static

Definition at line 351 of file regexp.cpp.

◆ hoc_cclass()

static int hoc_cclass ( char *  set,
char  c,
int  af 
)
static

Definition at line 456 of file regexp.cpp.

Variable Documentation

◆ braelist

char* braelist[NBRA]
static

Definition at line 87 of file regexp.cpp.

◆ braslist

char* braslist[NBRA]
static

Definition at line 86 of file regexp.cpp.

◆ circfl

int circfl
static

Definition at line 88 of file regexp.cpp.

◆ expbuf

char expbuf[ESIZE+4]
static

Definition at line 81 of file regexp.cpp.

◆ int_range_start

int int_range_start[NBRA]
static

Definition at line 90 of file regexp.cpp.

◆ int_range_stop

int int_range_stop[NBRA]
static

Definition at line 91 of file regexp.cpp.

◆ loc1

char* loc1
static

Definition at line 83 of file regexp.cpp.

◆ loc2

char* loc2
static

Definition at line 84 of file regexp.cpp.

◆ locs

char* locs
static

Definition at line 85 of file regexp.cpp.

◆ pattern

char* pattern = ""
static

Definition at line 82 of file regexp.cpp.