Switch to unified view

a/src/query/plaintorich.h b/src/query/plaintorich.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 _PLAINTORICH_H_INCLUDED_
17
#ifndef _PLAINTORICH_H_INCLUDED_
18
#define _PLAINTORICH_H_INCLUDED_
18
#define _PLAINTORICH_H_INCLUDED_
19
/* @(#$Id: plaintorich.h,v 1.1 2008-11-19 12:19:40 dockes Exp $  (C) 2004 J.F.Dockes */
19
/* @(#$Id: plaintorich.h,v 1.2 2008-12-16 14:20:10 dockes Exp $  (C) 2004 J.F.Dockes */
20
20
21
#include <string>
21
#include <string>
22
#include <list>
22
#include <list>
23
using std::list;
23
using std::list;
24
using std::string;
24
using std::string;
...
...
40
 * for different styles. We can handle plain text or html input. In the latter
40
 * for different styles. We can handle plain text or html input. In the latter
41
 * case, we may fail to highligt term groups if they are mixed with html tags.
41
 * case, we may fail to highligt term groups if they are mixed with html tags.
42
 */
42
 */
43
class PlainToRich {
43
class PlainToRich {
44
public:
44
public:
45
    PlainToRich(bool inputhtml = false) : m_inputhtml(inputhtml) {}
45
    PlainToRich() : m_inputhtml(false) {}
46
    virtual ~PlainToRich() {}
46
    virtual ~PlainToRich() {}
47
    void set_inputhtml(bool v) {m_inputhtml = v;}
47
    void set_inputhtml(bool v) {m_inputhtml = v;}
48
48
49
    /**
49
    /**
50
     * Transform plain text for highlighting search terms, ie in the
50
     * Transform plain text for highlighting search terms, ie in the