MCPcopy Create free account
hub / github.com/EarlhamInst/KAT / valueToString

Function valueToString

deps/jellyfish-2.2.0/lib/jsoncpp.cpp:3418–3430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3416
3417
3418std::string valueToString( LargestInt value )
3419{
3420 UIntToStringBuffer buffer;
3421 char *current = buffer + sizeof(buffer);
3422 bool isNegative = value < 0;
3423 if ( isNegative )
3424 value = -value;
3425 uintToString( LargestUInt(value), current );
3426 if ( isNegative )
3427 *--current = '-';
3428 assert( current >= buffer );
3429 return current;
3430}
3431
3432
3433std::string valueToString( LargestUInt value )

Callers 1

writeValueMethod · 0.85

Calls 2

uintToStringFunction · 0.85
assertClass · 0.85

Tested by

no test coverage detected