| 167 | } |
| 168 | |
| 169 | static bool evaluate(thread_db* tdbb, MemoryPool& pool, TextType* textType, const UCHAR* str, SLONG strLen, |
| 170 | const UCHAR* patternStr, SLONG patternLen, const UCHAR* escapeStr, SLONG escapeLen) |
| 171 | { |
| 172 | Re2SimilarMatcher matcher(tdbb, pool, textType, patternStr, patternLen, escapeStr, escapeLen); |
| 173 | matcher.process(str, strLen); |
| 174 | return matcher.result(); |
| 175 | } |
| 176 | |
| 177 | public: |
| 178 | virtual void reset() |