MCPcopy Create free account
hub / github.com/Illumina/paragraph / valueToString

Function valueToString

external/jsoncpp/jsoncpp.cpp:4228–4242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4226#endif
4227
4228JSONCPP_STRING valueToString(LargestInt value) {
4229 UIntToStringBuffer buffer;
4230 char* current = buffer + sizeof(buffer);
4231 if (value == Value::minLargestInt) {
4232 uintToString(LargestUInt(Value::maxLargestInt) + 1, current);
4233 *--current = '-';
4234 } else if (value < 0) {
4235 uintToString(LargestUInt(-value), current);
4236 *--current = '-';
4237 } else {
4238 uintToString(LargestUInt(value), current);
4239 }
4240 assert(current >= buffer);
4241 return current;
4242}
4243
4244JSONCPP_STRING valueToString(LargestUInt value) {
4245 UIntToStringBuffer buffer;

Callers 2

asStringMethod · 0.85
writeValueMethod · 0.85

Calls 2

uintToStringFunction · 0.85
fixNumericLocaleFunction · 0.85

Tested by

no test coverage detected