MCPcopy Index your code
hub / github.com/Kitware/CMake / valueToString

Function valueToString

Utilities/cmjsoncpp/src/lib_json/json_writer.cpp:94–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

writeValueMethod · 0.85
asStringMethod · 0.85

Calls 9

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…