MCPcopy Create free account
hub / github.com/chen3feng/toft / UnsignedToString

Function UnsignedToString

base/string/format/print_arg.cpp:100–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98
99template <int Base, typename T>
100static char* UnsignedToString(T value, char* buffer, const char* digits_table)
101{
102 char* p = buffer;
103 do {
104 *p = digits_table[value % Base];
105 value /= Base;
106 ++p;
107 } while (value != 0);
108 std::reverse(buffer, p);
109 return p;
110}
111
112int WriteVoidPtr(FormatPrintTarget* target, const PrintSpecification& spec,
113 const void* value)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected