MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / valueToString

Function valueToString

Sources/Dependencies/jsoncpp/writer.cpp:31–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 using StreamWriterPtr = std::unique_ptr<StreamWriter>;
30
31 StringContainer valueToString(LargestInt value) {
32 UIntToStringBuffer buffer;
33 char* current = buffer + sizeof(buffer);
34 if (value == Value::minLargestInt) {
35 uintToString(LargestUInt(Value::maxLargestInt) + 1, current);
36 *--current = '-';
37 } else if (value < 0) {
38 uintToString(LargestUInt(-value), current);
39 *--current = '-';
40 } else {
41 uintToString(LargestUInt(value), current);
42 }
43 assert(current >= buffer);
44 return current;
45 }
46
47 StringContainer valueToString(LargestUInt value) {
48 UIntToStringBuffer buffer;

Callers 2

asStringMethod · 0.85
writeValueMethod · 0.85

Calls 9

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

Tested by

no test coverage detected