std.internal.cstring

Helper functions for working with C strings.

This module is intended to provide fast, safe and garbage free way to work with C strings.

Types 1

private structTempCStringBuffer(To = char)
Fields
To * useStack
To * _ptr
size_t _length
Methods
inout(To) * buffPtr() @property return inout
const(To) * ptr() @property const
const(To)[] opIndex() const pure
Constructors
Destructors

Functions 3

fnauto tempCString(To = char, From)(scope From str) if (isSomeChar!To && (isInputRange!From || isSomeString!From) && isSomeChar!(ElementEncodingType!From))Creates temporary 0-terminated C string with copy of passed text.
private fnTo[] trustedRealloc(To)(return scope To[] buf) @trusted @nogc pure nothrow
private fnTo[] trustedReallocStack(To)(scope To[] buf, size_t strLength) @trusted @nogc pure nothrow