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

Method key_length

src/common/TextType.cpp:175–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173
174
175USHORT TextType::key_length(USHORT len)
176{
177 if (tt->texttype_fn_key_length)
178 return (*tt->texttype_fn_key_length)(tt, len);
179
180 if (getCharSet()->isMultiByte())
181 return UnicodeUtil::utf16KeyLength(len);
182
183 return len;
184}
185
186
187USHORT TextType::string_to_key(USHORT srcLen, const UCHAR* src,

Callers 1

INTL_key_lengthFunction · 0.80

Calls 1

isMultiByteMethod · 0.80

Tested by

no test coverage detected