|
a/src/common/textsplit.h |
|
b/src/common/textsplit.h |
1 |
#ifndef _TEXTSPLIT_H_INCLUDED_
|
1 |
#ifndef _TEXTSPLIT_H_INCLUDED_
|
2 |
#define _TEXTSPLIT_H_INCLUDED_
|
2 |
#define _TEXTSPLIT_H_INCLUDED_
|
3 |
/* @(#$Id: textsplit.h,v 1.8 2005-10-19 10:21:48 dockes Exp $ (C) 2004 J.F.Dockes */
|
3 |
/* @(#$Id: textsplit.h,v 1.9 2006-01-28 10:23:55 dockes Exp $ (C) 2004 J.F.Dockes */
|
4 |
|
4 |
|
5 |
#include <string>
|
5 |
#include <string>
|
6 |
#ifndef NO_NAMESPACES
|
6 |
#ifndef NO_NAMESPACES
|
7 |
using std::string;
|
7 |
using std::string;
|
8 |
#endif
|
8 |
#endif
|
|
... |
|
... |
33 |
string prevterm;
|
33 |
string prevterm;
|
34 |
int prevpos;
|
34 |
int prevpos;
|
35 |
TextSplitCB *cb;
|
35 |
TextSplitCB *cb;
|
36 |
int maxWordLength;
|
36 |
int maxWordLength;
|
37 |
bool emitterm(bool isspan, std::string &term, int pos, int bs, int be);
|
37 |
bool emitterm(bool isspan, std::string &term, int pos, int bs, int be);
|
38 |
bool doemit(string &word, int &wordpos, string &span, int spanpos,
|
38 |
bool doemit(string &word, int &wordpos, string &span, int &spanpos,
|
39 |
bool spanerase, int bp);
|
39 |
bool spanerase, int bp);
|
40 |
public:
|
40 |
public:
|
41 |
/**
|
41 |
/**
|
42 |
* Constructor: just store callback object
|
42 |
* Constructor: just store callback object
|
43 |
*/
|
43 |
*/
|