MCPcopy Create free account
hub / github.com/Illumina/hap.py / valueToString

Function valueToString

external/jsoncpp/jsoncpp.cpp:3088–3099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3086}
3087
3088std::string valueToString(LargestInt value) {
3089 UIntToStringBuffer buffer;
3090 char *current = buffer + sizeof(buffer);
3091 bool isNegative = value < 0;
3092 if (isNegative)
3093 value = -value;
3094 uintToString(LargestUInt(value), current);
3095 if (isNegative)
3096 *--current = '-';
3097 assert(current >= buffer);
3098 return current;
3099}
3100
3101std::string valueToString(LargestUInt value) {
3102 UIntToStringBuffer buffer;

Callers 2

asStringMethod · 0.85
writeValueMethod · 0.85

Calls 2

uintToStringFunction · 0.85
fixNumericLocaleFunction · 0.85

Tested by

no test coverage detected