dash.utility.string

Defines utility functions for strings

Members

Functions

fromStringz
string fromStringz(const char* msg)

Returns new string formed from C-style (null-terminated) string msg. Usefull when interfacing with C libraries. For D-style to C-style convertion use std.string.toStringz.

replaceMap
T replaceMap(T base, TKey[TValue] replaceMap)

Replaces each key in replaceMap with it's value.

Meta