Switch to unified view

a/src/rcldb/synfamily.h b/src/rcldb/synfamily.h
...
...
132
      m_trans(trans), m_prefix(m_family.entryprefix(m_membername))
132
      m_trans(trans), m_prefix(m_family.entryprefix(m_membername))
133
    {
133
    {
134
    }
134
    }
135
135
136
    /** Expand a term to its list of synonyms. If filtertrans is set we 
136
    /** Expand a term to its list of synonyms. If filtertrans is set we 
137
     * keep only the results which transform to the same value as the input */
137
     * keep only the results which transform to the same value as the input 
138
     * This is used for example for filtering the result of case+diac
139
     * expansion when only either case or diac expansion is desired.
140
     */
138
    bool synExpand(const std::string& term, std::vector<std::string>& result,
141
    bool synExpand(const std::string& term, std::vector<std::string>& result,
139
           SynTermTrans *filtertrans = 0);
142
           SynTermTrans *filtertrans = 0);
140
    
143
    
144
    /** Expand key to wildcard/regexp  matching keys */
145
    bool keyWildExpand(const std::string& in, std::vector<std::string>& result,
146
             SynTermTrans *filtertrans = 0);
147
141
private:
148
private:
142
    XapSynFamily m_family;
149
    XapSynFamily m_family;
143
    std::string  m_membername;
150
    std::string  m_membername;
144
    SynTermTrans *m_trans;
151
    SynTermTrans *m_trans;
145
    std::string m_prefix;
152
    std::string m_prefix;
...
...
197
204
198
205
199
//
206
//
200
// Prefixes are centrally defined here to avoid collisions
207
// Prefixes are centrally defined here to avoid collisions
201
//
208
//
202
// Stem expansion family prefix. The family member name is the
203
// language ("all" for Dia and Cse)
204
209
205
// Lowercase accented stem to expansion
210
// Lowercase accented stem to expansion. Family member name: language
206
static const std::string synFamStem("Stm");
211
static const std::string synFamStem("Stm");
207
// Lowercase unaccented stem to expansion
212
213
// Lowercase unaccented stem to expansion. Family member name: language
208
static const std::string synFamStemUnac("StU");
214
static const std::string synFamStemUnac("StU");
215
209
// Lowercase unaccented term to case and accent variations
216
// Lowercase unaccented term to case and accent variations. Only one
217
// member, named "all". This set is used for separate case/diac
218
// expansion by post-filtering the results of dual expansion.
210
static const std::string synFamDiCa("DCa");
219
static const std::string synFamDiCa("DCa");
211
}
220
221
} // end namespace Rcl
212
222
213
#endif /* _SYNFAMILY_H_INCLUDED_ */
223
#endif /* _SYNFAMILY_H_INCLUDED_ */