|
a/src/query/wasatorcl.cpp |
|
b/src/query/wasatorcl.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: wasatorcl.cpp,v 1.17 2008-11-18 13:25:48 dockes Exp $ (C) 2006 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: wasatorcl.cpp,v 1.18 2008-12-05 11:09:31 dockes Exp $ (C) 2006 J.F.Dockes";
|
3 |
#endif
|
3 |
#endif
|
4 |
/*
|
4 |
/*
|
5 |
* This program is free software; you can redistribute it and/or modify
|
5 |
* This program is free software; you can redistribute it and/or modify
|
6 |
* it under the terms of the GNU General Public License as published by
|
6 |
* it under the terms of the GNU General Public License as published by
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
|
... |
|
... |
100 |
if (!stringicmp("dir", (*it)->m_fieldspec)) {
|
100 |
if (!stringicmp("dir", (*it)->m_fieldspec)) {
|
101 |
sdata->setTopdir((*it)->m_value);
|
101 |
sdata->setTopdir((*it)->m_value);
|
102 |
break;
|
102 |
break;
|
103 |
}
|
103 |
}
|
104 |
|
104 |
|
105 |
if ((*it)->m_value.find_first_of(" \t\n\r") != string::npos) {
|
105 |
if (TextSplit::hasVisibleWhite((*it)->m_value)) {
|
106 |
int slack = (mods & WasaQuery::WQM_PHRASESLACK) ? 10 : 0;
|
106 |
int slack = (mods & WasaQuery::WQM_PHRASESLACK) ? 10 : 0;
|
107 |
Rcl::SClType tp = Rcl::SCLT_PHRASE;
|
107 |
Rcl::SClType tp = Rcl::SCLT_PHRASE;
|
108 |
if (mods & WasaQuery::WQM_PROX) {
|
108 |
if (mods & WasaQuery::WQM_PROX) {
|
109 |
tp = Rcl::SCLT_NEAR;
|
109 |
tp = Rcl::SCLT_NEAR;
|
110 |
slack = 10;
|
110 |
slack = 10;
|