Function String.get

Returns an array used internally by the string. The length of the returned array may be smaller than the size of the reserved memory for the string.

inout inout(char)[] get() pure nothrow @nogc @trusted;

Returns

The array representing the string.

Example

auto s = String("Char array.");
assert(s.get().length == 11);