Index of /pub/old/ac/libAC/
| Name | Last Modified | Size |
|---|---|---|
| 2021-02-04 13:32 | 9k | |
| 2021-02-04 13:32 | 4k | |
| 2021-02-04 13:32 | 2k | |
| 2021-02-04 13:32 | 5k | |
| 2021-02-04 13:32 | 4k | |
| 2021-02-04 13:32 | 3k | |
| 2021-02-04 13:32 | 2k | |
| 2021-02-04 13:32 | 9k | |
| 2021-02-04 13:32 | 2k | |
| 2021-02-04 13:32 | 2k |
This is the README file for libAC.
$Id: README,v 1.1 2011/02/14 18:53:21 rec Exp rec $
libAC implements the Aho and Corasic string matching algorithm as
published in "Efficient string matching: an aid to bibliographic search"
by Alfred Aho and Margaret Corasick in Communications of the ACM from
June 1975.
This library should build without modification on any modern UNIX or
Linux environment. It is dependent upon a handful of library routines
including strlen(3), memset(3), malloc(3) and the standard I/O routines.
Installation:
Installation is simple:
1. Run make -- this should build the library and the demo program 'demo1'.
2. Test the library using 'demo1' -- demo1 reads each file on the command
line and isolates C reserved words. It should work quickly.
3. Install libAC.a and ac.h in suitable places with suitable permissions.
Programming:
Programming is simple. Everything starts with allocating an AC_Handle.
With this handle, you can add and subtract strings to be matched.
Once the required strings have been added, the handle needs to be prepared
for run.
Now, the handle is ready to be used as many times as you wish. Each
use involves calling ac_search_init to reset the internal search state
and then repeatedly calling ac_search to isolate the next match until
it returns 0 to indicate end of the search.
Statistics can be reported and cleared.
See ac.h for more information.
Notes:
- There is no reason why libAC cannot be used in a threaded environment.
But no two threads should use the same handle at the same time.
The code does not contain any locks or sequening logic.
Proudly Served by LiteSpeed Web Server at www.rcousins.com Port 443