Index of /pub/old/ac/libAC/

NameLast ModifiedSize
UpParent Directory
[TXT]ac.h2021-02-04 13:32 9k
[TXT]ac_addstr.c2021-02-04 13:32 4k
[TXT]ac_alloc.c2021-02-04 13:32 2k
[TXT]ac_code.c2021-02-04 13:32 5k
[TXT]ac_delstr.c2021-02-04 13:32 4k
[TXT]ac_prep.c2021-02-04 13:32 3k
[TXT]ac_print.c2021-02-04 13:32 2k
[TXT]ac_search.c2021-02-04 13:32 9k
[TXT]ac_stats.c2021-02-04 13:32 2k
FileMakefile2021-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