MCPcopy Create free account
hub / github.com/PlayFab/gsdk / valueToString

Function valueToString

cpp/cppsdk/jsoncpp.cpp:4265–4279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4263#endif
4264
4265JSONCPP_STRING valueToString(LargestInt value) {
4266 UIntToStringBuffer buffer;
4267 char* current = buffer + sizeof(buffer);
4268 if (value == Value::minLargestInt) {
4269 uintToString(LargestUInt(Value::maxLargestInt) + 1, current);
4270 *--current = '-';
4271 } else if (value < 0) {
4272 uintToString(LargestUInt(-value), current);
4273 *--current = '-';
4274 } else {
4275 uintToString(LargestUInt(value), current);
4276 }
4277 assert(current >= buffer);
4278 return current;
4279}
4280
4281JSONCPP_STRING valueToString(LargestUInt value) {
4282 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.80

Tested by

no test coverage detected