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)

String with unique ownership implementation

RCString
alias RCString = StringImpl!(char, RC.yes)
RCStringD
alias RCStringD = StringImpl!(dchar, RC.yes)
RCStringW
alias RCStringW = StringImpl!(wchar, RC.yes)

Refcounted String implementation.

String
alias String = StringImpl!(char, RC.no)
WString
alias WString = StringImpl!(wchar, RC.no)

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