1 #include <../../nrnconf.h>
54 #define CABLESECTION 1
66 #define error(enum) hoc_execerror("search string format error", pattern)
94 static int advance(
char* lp,
char* ep);
98 char* cp = (
char*) pat;
103 char bracket[
NBRA], *bracketp;
106 int int_range_index = 0;
126 if ((
c = *cp++) ==
'\n') {
167 if ((
c = *cp++) ==
'(') {
176 if (bracketp <= bracket)
197 if (*lastep ==
CBRA || *lastep ==
CKET)
205 if (tempc !=
eof && tempc !=
'\n')
214 if (int_range_index >=
NBRA)
218 if (!(*cp >=
'0' && *cp <=
'9') && *cp !=
'-') {
221 }
while (*(++cp) !=
'}');
229 *ep++ = int_range_index++;
241 if ((
c = *cp++) ==
'^') {
251 if (
c ==
'-' && *(ep - 1) ==
'\\')
256 else if ((tempc = *cp++) !=
']' &&
c ==
'-' && cclcnt > 1 && tempc !=
'\n' &&
257 (
c = *(ep - 1)) <= tempc) {
258 while (++
c <= tempc) {
276 }
while ((
c = *cp++) !=
'>');
279 }
while ((
c = *cp++) !=
']');
298 char* target = (
char*) tar;
302 if (target == (
char*) 0) {
313 while (*p1++ = *p2++)
381 if (num < 0 || num > 9) {
384 while (*lp >=
'0' && *lp <=
'9') {
385 num = 10 * num + *lp -
'0';
448 }
while (lp > curlp);
int hoc_regexp_search(const char *tar)
void hoc_regexp_compile(const char *pat)
int const size_t const size_t n
static int int_range_stop[NBRA]
static int advance(char *lp, char *ep)
static char * braslist[NBRA]
static int int_range_start[NBRA]
static int hoc_cclass(char *set, char c, int af)
static char * braelist[NBRA]
static char expbuf[ESIZE+4]