Parent: [6e0ec4] (diff)

Child: [3872f8] (diff)

Download this file

plaintorich.h    22 lines (18 with data), 683 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _PLAINTORICH_H_INCLUDED_
#define _PLAINTORICH_H_INCLUDED_
/* @(#$Id: plaintorich.h,v 1.4 2006-01-27 13:42:02 dockes Exp $ (C) 2004 J.F.Dockes */
#include <string>
/**
* Transform plain text into qt rich text for the preview window.
*
* We mainly escape characters like < or &, and add qt rich text tags to
* colorize the query terms.
*
* @param in raw text out of internfile.
* @param terms list of query terms
* @param termoffsets output: character offsets where we find terms.
*/
extern bool plaintorich(const string &in, string &out,
const list<string>& terms,
list<pair<int, int> >& termoffsets);
#endif /* _PLAINTORICH_H_INCLUDED_ */