bc.string.string

Some helper functions to work with strings

Members

Aliases

CString
alias CString = const(char)[]
Undocumented in source.
DString
alias DString = StringImpl!(dchar, RC.no, Zero.no)
DStringZ
alias DStringZ = StringImpl!(dchar, RC.no, Zero.yes)

String with unique ownership implementation.

RCDString
alias RCDString = StringImpl!(dchar, RC.yes, Zero.no)
RCDStringZ
alias RCDStringZ = StringImpl!(dchar, RC.yes, Zero.yes)

Refcounted string implementation.

RCString
alias RCString = StringImpl!(char, RC.yes, Zero.no)
RCStringZ
alias RCStringZ = StringImpl!(char, RC.yes, Zero.yes)
RCWString
alias RCWString = StringImpl!(wchar, RC.yes, Zero.no)
RCWStringZ
alias RCWStringZ = StringImpl!(wchar, RC.yes, Zero.yes)

Refcounted string implementation.

String
alias String = StringImpl!(char, RC.no, Zero.no)
StringZ
alias StringZ = StringImpl!(char, RC.no, Zero.yes)
WString
alias WString = StringImpl!(wchar, RC.no, Zero.no)
WStringZ
alias WStringZ = StringImpl!(wchar, RC.no, Zero.yes)

String with unique ownership implementation.

Functions

rcString
auto rcString(S str)
Undocumented in source. Be warned that the author may not have intended to support it.
tempCString
auto tempCString(S str)

Temporary string buffer. It can be used to build temporary \0 ended C strings. For lengths < 255, it uses static char array, mallocated buffer otherwise.

Structs

TempCString
struct TempCString(C)

Temporary string buffer. It can be used to build temporary \0 ended C strings. For lengths < 255, it uses static char array, mallocated buffer otherwise.

Templates

dedent
template dedent(alias str)

Alternative implementation of std.string.outdent that differs in:

isAcceptableString
template isAcceptableString(S)
Undocumented in source.

Meta