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

Method length

src/common/CharSet.cpp:131–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130
131ULONG FixedWidthCharSet::length(ULONG srcLen, const UCHAR* src, bool countTrailingSpaces) const
132{
133 if (!countTrailingSpaces)
134 srcLen = removeTrailingSpaces(srcLen, src);
135
136 if (getStruct()->charset_fn_length)
137 return getStruct()->charset_fn_length(getStruct(), srcLen, src);
138
139 return srcLen / minBytesPerChar();
140}
141
142
143ULONG FixedWidthCharSet::substring(const ULONG srcLen, const UCHAR* src, const ULONG dstLen, UCHAR* dst,

Callers 15

LD_setup_attributesFunction · 0.45
LC_NARROW_family3Function · 0.45
svc_api_gbakFunction · 0.45
gbakFunction · 0.45
setupSkipDataMethod · 0.45
setupIncludeDataMethod · 0.45
BURP_makeSymbolFunction · 0.45
authenticateMethod · 0.45
authenticateMethod · 0.45
RemoteGroupMethod · 0.45
dumpBinFunction · 0.45
authenticateMethod · 0.45

Calls 4

convertLengthMethod · 0.45
convertMethod · 0.45
getBufferMethod · 0.45
beginMethod · 0.45

Tested by 1

runTestFunction · 0.36