MCPcopy Create free account
hub / github.com/Kitware/VTK / valueToString

Function valueToString

ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:4182–4196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

asStringMethod · 0.85
writeValueMethod · 0.85

Calls 12

uintToStringFunction · 0.85
isfiniteFunction · 0.85
fixNumericLocaleFunction · 0.85
fixZerosInTheEndFunction · 0.85
assertFunction · 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