|
a/src/rcldb/termproc.h |
|
b/src/rcldb/termproc.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 _TERMPROC_H_INCLUDED_
|
17 |
#ifndef _TERMPROC_H_INCLUDED_
|
18 |
#define _TERMPROC_H_INCLUDED_
|
18 |
#define _TERMPROC_H_INCLUDED_
|
|
|
19 |
|
|
|
20 |
#include <vector>
|
|
|
21 |
#include <string>
|
19 |
|
22 |
|
20 |
#include "textsplit.h"
|
23 |
#include "textsplit.h"
|
21 |
#include "stoplist.h"
|
24 |
#include "stoplist.h"
|
22 |
#include "smallut.h"
|
25 |
#include "smallut.h"
|
23 |
|
26 |
|
|
... |
|
... |
162 |
hasspace=true;
|
165 |
hasspace=true;
|
163 |
break;
|
166 |
break;
|
164 |
}
|
167 |
}
|
165 |
}
|
168 |
}
|
166 |
if (hasspace) {
|
169 |
if (hasspace) {
|
167 |
vector<string> terms;
|
170 |
std::vector<std::string> terms;
|
168 |
stringToTokens(otrm, terms, " ", true);
|
171 |
stringToTokens(otrm, terms, " ", true);
|
169 |
for (vector<string>::const_iterator it = terms.begin();
|
172 |
for (std::vector<std::string>::const_iterator it = terms.begin();
|
170 |
it < terms.end(); it++) {
|
173 |
it < terms.end(); it++) {
|
171 |
if (!TermProc::takeword(*it, pos, bs, be)) {
|
174 |
if (!TermProc::takeword(*it, pos, bs, be)) {
|
172 |
return false;
|
175 |
return false;
|
173 |
}
|
176 |
}
|
174 |
}
|
177 |
}
|