MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / valueToString

Function valueToString

src/share/jsoncpp/jsoncpp.cpp:4180–4194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4178}
4179
4180JSONCPP_STRING valueToString(LargestInt value) {
4181 UIntToStringBuffer buffer;
4182 char* current = buffer + sizeof(buffer);
4183 if (value == Value::minLargestInt) {
4184 uintToString(LargestUInt(Value::maxLargestInt) + 1, current);
4185 *--current = '-';
4186 } else if (value < 0) {
4187 uintToString(LargestUInt(-value), current);
4188 *--current = '-';
4189 } else {
4190 uintToString(LargestUInt(value), current);
4191 }
4192 assert(current >= buffer);
4193 return current;
4194}
4195
4196JSONCPP_STRING valueToString(LargestUInt value) {
4197 UIntToStringBuffer buffer;

Callers 2

asStringMethod · 0.85
writeValueMethod · 0.85

Calls 3

uintToStringFunction · 0.85
assertFunction · 0.85
fixNumericLocaleFunction · 0.85

Tested by

no test coverage detected