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

Method fromString

src/yvalve/utl.cpp:1389–1401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1387 }
1388
1389 void fromString(CheckStatusWrapper* status, int scale, const char* from, FB_I128* to)
1390 {
1391 try
1392 {
1393 Int128* i128 = (Int128*)to;
1394 scale -= CVT_decompose(from, static_cast<USHORT>(strlen(from)), i128, errorFunction);
1395 i128->setScale(scale);
1396 }
1397 catch (const Exception& ex)
1398 {
1399 ex.stuffException(status);
1400 }
1401 }
1402
1403 static void errorFunction(const Arg::StatusVector& v)
1404 {

Callers

nothing calls this directly

Calls 3

CVT_decomposeFunction · 0.85
setScaleMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected