MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / uintToString

Function uintToString

Source/JSON/jsoncpp.cpp:151–157  ·  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

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

Callers 1

valueToStringFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected