MCPcopy Create free account
hub / github.com/Samsung/ONE / valueToString

Function valueToString

runtime/3rdparty/jsoncpp/jsoncpp.cpp:4500–4520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4498#endif
4499
4500String valueToString(LargestInt value)
4501{
4502 UIntToStringBuffer buffer;
4503 char *current = buffer + sizeof(buffer);
4504 if (value == Value::minLargestInt)
4505 {
4506 uintToString(LargestUInt(Value::maxLargestInt) + 1, current);
4507 *--current = '-';
4508 }
4509 else if (value < 0)
4510 {
4511 uintToString(LargestUInt(-value), current);
4512 *--current = '-';
4513 }
4514 else
4515 {
4516 uintToString(LargestUInt(value), current);
4517 }
4518 assert(current >= buffer);
4519 return current;
4520}
4521
4522String valueToString(LargestUInt value)
4523{

Callers 2

asStringMethod · 0.85
writeValueMethod · 0.85

Calls 11

uintToStringFunction · 0.85
isfiniteFunction · 0.85
isnanFunction · 0.85
fixNumericLocaleFunction · 0.85
fixZerosInTheEndFunction · 0.85
beginMethod · 0.45
sizeMethod · 0.45
resizeMethod · 0.45
eraseMethod · 0.45
endMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected