MCPcopy Create free account
hub / github.com/SOUI2/soui / valueToString

Function valueToString

third-part/jsoncpp/src/lib_json/json_writer.cpp:84–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82#endif
83
84JSONCPP_STRING valueToString(LargestInt value) {
85 UIntToStringBuffer buffer;
86 char* current = buffer + sizeof(buffer);
87 if (value == Value::minLargestInt) {
88 uintToString(LargestUInt(Value::maxLargestInt) + 1, current);
89 *--current = '-';
90 } else if (value < 0) {
91 uintToString(LargestUInt(-value), current);
92 *--current = '-';
93 } else {
94 uintToString(LargestUInt(value), current);
95 }
96 assert(current >= buffer);
97 return current;
98}
99
100JSONCPP_STRING valueToString(LargestUInt value) {
101 UIntToStringBuffer buffer;

Callers 4

writeValueMethod · 0.85
asStringMethod · 0.85
printValueTreeFunction · 0.85
jsontest.cppFile · 0.85

Calls 2

uintToStringFunction · 0.85
fixNumericLocaleFunction · 0.85

Tested by

no test coverage detected