StringImpl.resize

Resizes the string.

struct StringImpl(T)
@nogc
void
resize
(
size_t newLength
)

Parameters

newLength size_t

The amount of characters the string should be.

Note: The contents when increasing the size of a string with this function is undefined. A null terminator will be appended automatically.

Meta