MCPcopy Create free account
hub / github.com/Samsung/UTopia / valueToString

Function valueToString

external/jsoncpp/jsoncpp.cpp:4167–4181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4165#endif
4166
4167String valueToString(LargestInt value) {
4168 UIntToStringBuffer buffer;
4169 char *current = buffer + sizeof(buffer);
4170 if (value == Value::minLargestInt) {
4171 uintToString(LargestUInt(Value::maxLargestInt) + 1, current);
4172 *--current = '-';
4173 } else if (value < 0) {
4174 uintToString(LargestUInt(-value), current);
4175 *--current = '-';
4176 } else {
4177 uintToString(LargestUInt(value), current);
4178 }
4179 assert(current >= buffer);
4180 return current;
4181}
4182
4183String valueToString(LargestUInt value) {
4184 UIntToStringBuffer buffer;

Callers 2

asStringMethod · 0.85
writeValueMethod · 0.85

Calls 8

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

Tested by

no test coverage detected