MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / uintToString

Function uintToString

src/jsoncpp.cpp:149–155  ·  view source on GitHub ↗

Converts an unsigned integer to string. * @param value Unsigned interger to convert to string * @param current Input/Output string buffer. * Must have at least uintToStringBufferSize chars free. */

Source from the content-addressed store, hash-verified

147 * Must have at least uintToStringBufferSize chars free.
148 */
149static inline void uintToString(LargestUInt value, char*& current) {
150 *--current = 0;
151 do {
152 *--current = static_cast<signed char>(value % 10U + static_cast<unsigned>('0'));
153 value /= 10;
154 } while (value != 0);
155}
156
157/** Change ',' to '.' everywhere in buffer.
158 *

Callers 1

valueToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected