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