|
a/src/rcldb/expansiondbs.h |
|
b/src/rcldb/expansiondbs.h |
|
... |
|
... |
41 |
*/
|
41 |
*/
|
42 |
SynTermTransUnac(UnacOp op)
|
42 |
SynTermTransUnac(UnacOp op)
|
43 |
: m_op(op)
|
43 |
: m_op(op)
|
44 |
{
|
44 |
{
|
45 |
}
|
45 |
}
|
|
|
46 |
virtual std::string name() {
|
|
|
47 |
std::string nm("Unac: ");
|
|
|
48 |
if (m_op & UNACOP_UNAC)
|
|
|
49 |
nm += "UNAC ";
|
|
|
50 |
if (m_op & UNACOP_FOLD)
|
|
|
51 |
nm += "FOLD ";
|
|
|
52 |
return nm;
|
|
|
53 |
}
|
46 |
virtual std::string operator()(const std::string& in)
|
54 |
virtual std::string operator()(const std::string& in)
|
47 |
{
|
55 |
{
|
48 |
string out;
|
56 |
string out;
|
49 |
unacmaybefold(in, out, "UTF-8", m_op);
|
57 |
unacmaybefold(in, out, "UTF-8", m_op);
|
50 |
LOGDEB2(("SynTermTransUnac(%d): in [%s] out [%s]\n", int(m_op),
|
58 |
LOGDEB2(("SynTermTransUnac(%d): in [%s] out [%s]\n", int(m_op),
|