MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / uintToString

Function uintToString

Sources/Dependencies/jsoncpp/json_tool.h:80–86  ·  view source on GitHub ↗

Converts an unsigned integer to string. * @param value Unsigned integer 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

78 * Must have at least uintToStringBufferSize chars free.
79 */
80 static inline void uintToString(LargestUInt value, char*& current) {
81 *--current = 0;
82 do {
83 *--current = static_cast<char>(value % 10U + static_cast<unsigned>('0'));
84 value /= 10;
85 } while (value != 0);
86 }
87
88 /** Change ',' to '.' everywhere in buffer.
89 *

Callers 1

valueToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected