Switch to unified view

a/src/rcldb/expansiondbs.h b/src/rcldb/expansiondbs.h
...
...
22
22
23
#include <xapian.h>
23
#include <xapian.h>
24
24
25
namespace Rcl {
25
namespace Rcl {
26
26
27
/* A Capitals/Diacritics removal functor for using with
27
/** A Capitals/Diacritics removal functor for using with
28
   XapComputableSynFamMember */
28
 *  XapComputableSynFamMember */
29
class SynTermTransUnac : public SynTermTrans {
29
class SynTermTransUnac : public SynTermTrans {
30
public:
30
public:
31
    /** Constructor
32
     * @param op defines if we remove diacritics, case or both 
33
     */
31
    SynTermTransUnac(UnacOp op)
34
    SynTermTransUnac(UnacOp op)
32
    : m_op(op)
35
    : m_op(op)
33
    {
36
    {
34
    }
37
    }
35
    virtual std::string operator()(const std::string& in)
38
    virtual std::string operator()(const std::string& in)
...
...
41
    return out;
44
    return out;
42
    }
45
    }
43
    UnacOp m_op;
46
    UnacOp m_op;
44
};
47
};
45
48
46
/** Walk the Xapian term list and create all the expansion dbs in one go */
49
/** Walk the Xapian term list and create all the expansion dbs in one go.
50
 * 
51
 */
47
extern bool createExpansionDbs(Xapian::WritableDatabase& wdb, 
52
extern bool createExpansionDbs(Xapian::WritableDatabase& wdb, 
48
                   const std::vector<std::string>& langs);
53
                   const std::vector<std::string>& langs);
49
}
54
}
50
55
51
#endif /* _EXPANSIONDBS_H_INCLUDED_ */
56
#endif /* _EXPANSIONDBS_H_INCLUDED_ */