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

Method lookupConverter

src/jrd/intl.cpp:325–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325CsConvert CharSetContainer::lookupConverter(thread_db* tdbb, CHARSET_ID toCsId)
326{
327 if (toCsId == CS_UTF16)
328 return CsConvert(cs->getStruct(), NULL);
329
330 CharSet* toCs = INTL_charset_lookup(tdbb, toCsId);
331 if (cs->getId() == CS_UTF16)
332 return CsConvert(NULL, toCs->getStruct());
333
334 return CsConvert(cs->getStruct(), toCs->getStruct());
335}
336
337Collation* CharSetContainer::lookupCollation(thread_db* tdbb, USHORT tt_id)
338{

Callers 1

INTL_convert_lookupFunction · 0.80

Calls 4

CsConvertClass · 0.85
INTL_charset_lookupFunction · 0.85
getStructMethod · 0.45
getIdMethod · 0.45

Tested by

no test coverage detected