tango.stdc.stringz

Members

Functions

fromString16z
inout(wchar)[] fromString16z(inout(wchar)* s)

Convert a C-style 0 terminated string to an array of wchar

fromString32z
inout(dchar)[] fromString32z(inout(dchar)* s)

Convert a C-style 0 terminated string to an array of dchar

fromStringz
inout(char)[] fromStringz(inout(char)* s)

Convert a C-style 0 terminated string to an array of char

strlenz
size_t strlenz(const(T)* s)

portable strlen

toString16z
inout(wchar)* toString16z(inout(wchar)[] s)

Convert array of wchars s[] to a C-style 0 terminated string.

toString32z
inout(dchar)* toString32z(inout(dchar)[] s)

Convert array of dchars s[] to a C-style 0 terminated string.

toStringz
inout(char)* toStringz(inout(char)[] s, char[] tmp)

Convert array of chars to a C-style 0 terminated string. Providing a tmp will use that instead of the heap, where appropriate.

toStringz
inout(char)*[] toStringz(char[] tmp, inout(char)*[] dst, inout(char)[][] strings)

Convert a series of char[] to C-style 0 terminated strings, using tmp as a workspace and dst as a place to put the resulting char*'s. This is handy for efficiently converting multiple strings at once.

Meta

License

BSD style: $(LICENSE)

Version

Initial release: October 2006

Authors

Keinfarbton & Kris