MCPcopy Create free account
hub / github.com/ComodoSecurity/openedr / valueToString

Function valueToString

edrav2/eprj/jsoncpp/src/lib_json/json_writer.cpp:92–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90#endif
91
92JSONCPP_STRING valueToString(LargestInt value) {
93 UIntToStringBuffer buffer;
94 char* current = buffer + sizeof(buffer);
95 if (value == Value::minLargestInt) {
96 uintToString(LargestUInt(Value::maxLargestInt) + 1, current);
97 *--current = '-';
98 } else if (value < 0) {
99 uintToString(LargestUInt(-value), current);
100 *--current = '-';
101 } else {
102 uintToString(LargestUInt(value), current);
103 }
104 assert(current >= buffer);
105 return current;
106}
107
108JSONCPP_STRING valueToString(LargestUInt value) {
109 UIntToStringBuffer buffer;

Callers 4

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

Calls 11

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

Tested by

no test coverage detected