version 1.14, 2013/11/15 22:20:04 |
version 1.15, 2013/11/26 19:25:39 |
|
|
return(0); |
return(0); |
for (len = strlen(str);;) { |
for (len = strlen(str);;) { |
/* skip leading crud */ |
/* skip leading crud */ |
for (; *bp && !isalnum(*bp); ++bp) |
for (; *bp && !isalnum((unsigned char)*bp); ++bp) |
; |
; |
if (!*bp) |
if (!*bp) |
break; |
break; |
|
|
/* check for word match first */ |
/* check for word match first */ |
for (start = bp++; *bp == '_' || isalnum(*bp); ++bp) |
for (start = bp++; *bp == '_' || isalnum((unsigned char)*bp); ++bp) |
; |
; |
if (bp - start == len) { |
if (bp - start == len) { |
if (strncasecmp(start, str, len) == 0) |
if (strncasecmp(start, str, len) == 0) |
|
|
} else if (*bp && *bp != ',') { |
} else if (*bp && *bp != ',') { |
/* check for full string match */ |
/* check for full string match */ |
for (bp = start; |
for (bp = start; |
*bp && *bp != ',' && *bp != '(' && !isspace(*bp); ++bp) |
*bp && *bp != ',' && *bp != '(' && |
|
!isspace((unsigned char)*bp); ++bp) |
; |
; |
if (bp - start == len && strncasecmp(start, str, len) == 0) |
if (bp - start == len && strncasecmp(start, str, len) == 0) |
return(1); |
return(1); |