| 561 | } |
| 562 | |
| 563 | static bool evaluate(MemoryPool& pool, TextType* ttype, const UCHAR* s, SLONG sl, |
| 564 | const UCHAR* p, SLONG pl) |
| 565 | { |
| 566 | StrConverter cvt1(pool, ttype, p, pl); |
| 567 | StrConverter cvt2(pool, ttype, s, sl); |
| 568 | fb_assert(pl % sizeof(CharType) == 0); |
| 569 | fb_assert(sl % sizeof(CharType) == 0); |
| 570 | Firebird::ContainsEvaluator<CharType> evaluator(pool, |
| 571 | reinterpret_cast<const CharType*>(p), pl / sizeof(CharType)); |
| 572 | evaluator.processNextChunk(reinterpret_cast<const CharType*>(s), sl / sizeof(CharType)); |
| 573 | return evaluator.getResult(); |
| 574 | } |
| 575 | |
| 576 | private: |
| 577 | Firebird::ContainsEvaluator<CharType> evaluator; |
nothing calls this directly
no test coverage detected