Switch to unified view
a/src/rcldb/termproc.h | b/src/rcldb/termproc.h | ||
---|---|---|---|
... |
... |
||
129 | m_unacerrors, m_totalterms)); |
129 | m_unacerrors, m_totalterms)); |
130 | return false; |
130 | return false; |
131 | } |
131 | } |
132 | return true; |
132 | return true; |
133 | } |
133 | } |
134 | // It may happen in some weird cases that the output from unac is |
||
135 | // empty (if the word actually consisted entirely of diacritics ...) |
||
136 | // The consequence is that a phrase search won't work without addional |
||
137 | // slack. |
||
138 | if (otrm.empty()) |
||
139 | return true; |
||
140 | else |
||
134 | return TermProc::takeword(otrm, pos, bs, be); |
141 | return TermProc::takeword(otrm, pos, bs, be);
|
135 | } |
142 | } |
136 | 143 | ||
137 | virtual bool flush() |
144 | virtual bool flush() |
138 | { |
145 | { |
139 | m_totalterms = m_unacerrors = 0; |
146 | m_totalterms = m_unacerrors = 0; |