BOOTSTRAP (kutils) functions
LIBRARY ROUTINE
kre_exec - execute dfa to find a match.
LIBRARY CALL
int kre_exec(
char *lp)
INPUT
- lp - string to exec the DFA on
OUTPUT
none
RETURN VALUE
TRUE (1) on success, FALSE (0) otherwise
DESCRIPTION
Execute DFA to match a pattern.
special cases: (dfa[0])
BOS
Match only once, starting from the
beginning of the string.
CHR
First locate the character without
calling pmatch, and if found, call
pmatch for the remaining string.
END
re_comp failed, poor luser did not
check for it. Fail fast.
If a match is found, bopat[0] and eopat[0] are set
to the beginning and the end of the matched fragment,
respectively.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
kre_comp or kre_icomp must have been called
previously to calling this routine.
MODIFICATION
Integrated into Khoros 2.0 (MY) 7/93
FILES
$BOOTSTRAP/objects/library/kutils/src/regex.c
SEE ALSO
kutils(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.