|
a/src/rcldb/synfamily.cpp |
|
b/src/rcldb/synfamily.cpp |
|
... |
|
... |
18 |
|
18 |
|
19 |
#include "autoconfig.h"
|
19 |
#include "autoconfig.h"
|
20 |
|
20 |
|
21 |
#include <iostream>
|
21 |
#include <iostream>
|
22 |
#include <algorithm>
|
22 |
#include <algorithm>
|
23 |
#include MEMORY_INCLUDE
|
23 |
#include <memory>
|
24 |
|
24 |
|
25 |
#include "log.h"
|
25 |
#include "log.h"
|
26 |
#include "cstr.h"
|
26 |
#include "cstr.h"
|
27 |
#include "xmacros.h"
|
27 |
#include "xmacros.h"
|
28 |
#include "synfamily.h"
|
28 |
#include "synfamily.h"
|
|
... |
|
... |
181 |
SynTermTrans *filtertrans)
|
181 |
SynTermTrans *filtertrans)
|
182 |
{
|
182 |
{
|
183 |
LOGDEB("XapCompSynFam::synKeyExpand: [" << (inexp->exp()) << "]\n" );
|
183 |
LOGDEB("XapCompSynFam::synKeyExpand: [" << (inexp->exp()) << "]\n" );
|
184 |
|
184 |
|
185 |
// If set, compute filtering term (e.g.: only case-folded)
|
185 |
// If set, compute filtering term (e.g.: only case-folded)
|
186 |
STD_SHARED_PTR<StrMatcher> filter_exp;
|
186 |
std::shared_ptr<StrMatcher> filter_exp;
|
187 |
if (filtertrans) {
|
187 |
if (filtertrans) {
|
188 |
filter_exp = STD_SHARED_PTR<StrMatcher>(inexp->clone());
|
188 |
filter_exp = std::shared_ptr<StrMatcher>(inexp->clone());
|
189 |
filter_exp->setExp((*filtertrans)(inexp->exp()));
|
189 |
filter_exp->setExp((*filtertrans)(inexp->exp()));
|
190 |
}
|
190 |
}
|
191 |
|
191 |
|
192 |
// Transform input into our key format (e.g.: case-folded + diac-stripped),
|
192 |
// Transform input into our key format (e.g.: case-folded + diac-stripped),
|
193 |
// and prepend prefix
|
193 |
// and prepend prefix
|