MCPcopy Create free account
hub / github.com/Samsung/ONE / uintToString

Function uintToString

runtime/3rdparty/jsoncpp/jsoncpp.cpp:172–180  ·  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

170 * Must have at least uintToStringBufferSize chars free.
171 */
172static inline void uintToString(LargestUInt value, char *&current)
173{
174 *--current = 0;
175 do
176 {
177 *--current = static_cast<char>(value % 10U + static_cast<unsigned>('0'));
178 value /= 10;
179 } while (value != 0);
180}
181
182/** Change ',' to '.' everywhere in buffer.
183 *

Callers 1

valueToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected