|
a/src/rcldb/stemdb.cpp |
|
b/src/rcldb/stemdb.cpp |
|
... |
|
... |
289 |
string data = doc.get_data();
|
289 |
string data = doc.get_data();
|
290 |
|
290 |
|
291 |
// Build expansion list from database data No need for
|
291 |
// Build expansion list from database data No need for
|
292 |
// a conftree, but we need to massage the data a
|
292 |
// a conftree, but we need to massage the data a
|
293 |
// little
|
293 |
// little
|
294 |
string::size_type pos = data.find_first_of("=");
|
294 |
string::size_type pos = data.find('=');
|
295 |
++pos;
|
|
|
296 |
string::size_type pos1 = data.find_last_of("\n");
|
295 |
string::size_type pos1 = data.rfind('\n');
|
297 |
if (pos == string::npos || pos1 == string::npos ||
|
296 |
if (pos == string::npos || pos1 == string::npos ||
|
298 |
pos1 <= pos) {
|
297 |
pos1 <= pos+1) {
|
299 |
// ??
|
298 |
LOGERR(("stemExpand: bad data in db: [%s]\n",
|
|
|
299 |
data.c_str()));
|
300 |
} else {
|
300 |
} else {
|
|
|
301 |
++pos;
|
301 |
stringToStrings(data.substr(pos, pos1-pos), result);
|
302 |
stringToStrings(data.substr(pos, pos1-pos), result);
|
302 |
}
|
303 |
}
|
303 |
}
|
304 |
}
|
304 |
}
|
305 |
}
|
305 |
|
306 |
|