Mercurial > ~dholland > hg > ag > index.cgi
comparison anagram/agcore/search.h @ 0:13d2b8934445
Import AnaGram (near-)release tree into Mercurial.
author | David A. Holland |
---|---|
date | Sat, 22 Dec 2007 17:52:45 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:13d2b8934445 |
---|---|
1 /* | |
2 * AnaGram, A System for Syntax Directed Programming | |
3 * Copyright 1993-2002 Parsifal Software. All Rights Reserved. | |
4 * See the file COPYING for license and usage terms. | |
5 * | |
6 * search.h | |
7 */ | |
8 | |
9 #ifndef SEARCH_H | |
10 #define SEARCH_H | |
11 | |
12 #include "agstring.h" | |
13 | |
14 | |
15 class SearchProcess { | |
16 private: | |
17 unsigned char offset[256]; | |
18 AgString key; | |
19 int keyLength; | |
20 char *ptr; | |
21 enum {notSet, forward, reverse} currentMode; | |
22 | |
23 public: | |
24 SearchProcess(); | |
25 void setKey(AgString k); | |
26 char *scanForward(char *line, int n); | |
27 char *scanReverse(char *line, int n); | |
28 }; | |
29 | |
30 | |
31 #endif /* SEARCH_H */ |