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

Method result

src/jrd/Collation.cpp:190–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188 }
189
190 virtual bool result()
191 {
192 UCharBuffer utfBuffer;
193 const auto charSetId = textType->getCharSet()->getId();
194 UCharBuffer* bufferPtr = &buffer;
195
196 if (charSetId != CS_NONE && charSetId != CS_BINARY && charSetId != CS_UTF8)
197 {
198 converter.convert(buffer.getCount(), buffer.begin(), utfBuffer);
199 bufferPtr = &utfBuffer;
200 }
201
202 if (textType->getAttributes() & TEXTTYPE_ATTR_ACCENT_INSENSITIVE)
203 UnicodeUtil::utf8Normalize(*bufferPtr);
204
205 return regex->matches((const char*) bufferPtr->begin(), bufferPtr->getCount());
206 }
207
208private:
209 CsConvert converter;

Callers

nothing calls this directly

Calls 7

getAttributesMethod · 0.80
getIdMethod · 0.45
getCharSetMethod · 0.45
convertMethod · 0.45
getCountMethod · 0.45
beginMethod · 0.45
matchesMethod · 0.45

Tested by

no test coverage detected