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

Function characterLen

src/jrd/SysFunction.cpp:1505–1512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1503
1504
1505unsigned characterLen(DataTypeUtilBase* dataTypeUtil, const dsc* arg)
1506{
1507 unsigned len = arg->getStringLength();
1508 unsigned maxBytes = dataTypeUtil->maxBytesPerChar(arg->getCharSet());
1509 fb_assert(maxBytes);
1510 fb_assert(!(len % maxBytes));
1511 return len / maxBytes;
1512}
1513
1514
1515void makeDecode64(DataTypeUtilBase* dataTypeUtil, const SysFunction* function, dsc* result, int argsCount, const dsc** args)

Callers 2

makeDecode64Function · 0.85
makeDecodeHexFunction · 0.85

Calls 3

getStringLengthMethod · 0.80
maxBytesPerCharMethod · 0.45
getCharSetMethod · 0.45

Tested by

no test coverage detected