1 //
2 // Exact.cc
3 //
4 // Exact: The exact-match "fuzzy" matching. Simply returns the word (minus punctuation)
5 //
6 // Part of the ht://Dig package   <http://www.htdig.org/>
7 // Copyright (c) 1995-2004 The ht://Dig Group
8 // For copyright details, see the file COPYING in your distribution
9 // or the GNU Library General Public License (LGPL) version 2 or later
10 // <http://www.gnu.org/copyleft/lgpl.html>
11 //
12 // $Id: Exact.cc,v 1.11 2004/05/28 13:15:20 lha Exp $
13 //
14 
15 #ifdef HAVE_CONFIG_H
16 #include "htconfig.h"
17 #endif /* HAVE_CONFIG_H */
18 
19 #include <fcntl.h>
20 
21 #include "Exact.h"
22 #include "htString.h"
23 #include "List.h"
24 
25 
26 //*****************************************************************************
27 // Exact::Exact()
28 //
Exact(const HtConfiguration & config_arg)29 Exact::Exact(const HtConfiguration& config_arg) :
30   Fuzzy(config_arg)
31 {
32   name = "exact";
33 }
34 
35 
36 //*****************************************************************************
37 // Exact::~Exact()
38 //
~Exact()39 Exact::~Exact()
40 {
41 }
42 
43 
44 //*****************************************************************************
45 void
getWords(char * w,List & words)46 Exact::getWords(char *w, List &words)
47 {
48     String	stripped = w;
49     HtStripPunctuation(stripped);
50 
51     words.Add(new String(stripped));
52 }
53 
54 
55 //*****************************************************************************
56 int
openIndex()57 Exact::openIndex()
58 {
59   return 0;
60 }
61 
62 
63 //*****************************************************************************
64 void
generateKey(char *,String &)65 Exact::generateKey(char *, String &)
66 {
67 }
68 
69 
70 //*****************************************************************************
71 void
addWord(char *)72 Exact::addWord(char *)
73 {
74 }
75 
76 
77 
78 
79