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
private To * useStack
private To * _ptr
private size_t _length
Methods
inout(To) * buffPtr() @property @trusted pure nothrow @nogc return inout
const(To) * ptr() @property @trusted pure nothrow @nogc const
const(To)[] opIndex() @trusted pure nothrow @nogc const
private TempCStringBuffer trustedVoidInit() static @trusted pure nothrow @nogc
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