Switch to unified view

a/src/rcldb/rcldb.h b/src/rcldb/rcldb.h
...
...
14
 *   Free Software Foundation, Inc.,
14
 *   Free Software Foundation, Inc.,
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
16
 */
16
 */
17
#ifndef _DB_H_INCLUDED_
17
#ifndef _DB_H_INCLUDED_
18
#define _DB_H_INCLUDED_
18
#define _DB_H_INCLUDED_
19
/* @(#$Id: rcldb.h,v 1.39 2006-10-24 09:28:31 dockes Exp $  (C) 2004 J.F.Dockes */
19
/* @(#$Id: rcldb.h,v 1.40 2006-10-30 12:59:44 dockes Exp $  (C) 2004 J.F.Dockes */
20
20
21
#include <string>
21
#include <string>
22
#include <list>
22
#include <list>
23
#include <vector>
23
#include <vector>
24
24
...
...
158
    bool setQuery(AdvSearchData &q, int opts = QO_NONE,
158
    bool setQuery(AdvSearchData &q, int opts = QO_NONE,
159
          const string& stemlang = "english");
159
          const string& stemlang = "english");
160
    bool getQueryTerms(list<string>& terms);
160
    bool getQueryTerms(list<string>& terms);
161
    bool getMatchTerms(const Doc& doc, list<string>& terms);
161
    bool getMatchTerms(const Doc& doc, list<string>& terms);
162
162
163
    // Return a list of database terms that begin with the input string
163
    /** Return a list of index terms that match the input string
164
     * Expansion is performed either with either wildcard or regexp processing
164
    // Stem expansion is performed if lang is not empty
165
     * Stem expansion is performed if lang is not empty */
165
    list<string> completions(const string &s, const string &lang, int max=20);
166
    enum MatchType {ET_WILD, ET_REGEXP};
167
    bool termMatch(MatchType typ, const string &s, list<string>& result,
168
         const string &lang, int max=20);
166
169
167
    /** Add extra database for querying */
170
    /** Add extra database for querying */
168
    bool addQueryDb(const string &dir);
171
    bool addQueryDb(const string &dir);
169
    /** Remove extra database. if dir == "", remove all. */
172
    /** Remove extra database. if dir == "", remove all. */
170
    bool rmQueryDb(const string &dir);
173
    bool rmQueryDb(const string &dir);