unsignedToTempString

fnT[] unsignedToTempString(uint radix = 10, bool upperCase = false, T)(ulong value, return scope T[] buf) if (radix >= 2 && radix <= 36 && (is(T == char) || is(T == wchar) || is(T == dchar)))

Converts an unsigned integer value to a string of characters.

Can be used when compiling with -betterC. Does not allocate memory.

Parameters

Tchar, wchar or dchar
valuethe unsigned integer value to convert
bufthe pre-allocated buffer used to store the result
radixthe numeric base to use in the conversion 2 through 36 (defaults to 10)
upperCaseuse upper case letters for radices 11 - 36

Returns

The unsigned integer value as a string of characters
fnauto unsignedToTempString(uint radix = 10)(ulong value)

Converts an unsigned integer value to a string of characters.

This implementation is a template so it can be used when compiling with -betterC.

Parameters

valuethe unsigned integer value to convert
radixthe numeric base to use in the conversion (defaults to 10)

Returns

The unsigned integer value as a string of characters