string2wstringSize

Calculates the required buffer size in bytes for a string to wchar[] conversion. Room for a terminating '\0' is included.

@nogc nothrow @safe pure
size_t
string2wstringSize
(
in char[] src
)

Parameters

src char[]

The source string.

Return Value

Type: size_t

The maximum byte count the source string could require, including the terminating '\0'.

See Also

string2wstring

Meta