MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / evaluate

Method evaluate

src/jrd/Collation.cpp:563–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
576private:
577 Firebird::ContainsEvaluator<CharType> evaluator;

Callers

nothing calls this directly

Calls 2

processNextChunkMethod · 0.45
getResultMethod · 0.45

Tested by

no test coverage detected