tango.stdc.stringz

License:

BSD style: see license.txt

Version:

Initial release: October 2006

Author:

Keinfarbton & Kris
char* toStringz(char[] s, char[] tmp = null) #
Convert array of chars to a C-style 0 terminated string. Providing a tmp will use that instead of the heap, where appropriate.
char*[] toStringz(char[] tmp, char*[] dst, 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.
Returns a populated slice of dst

Since:

0.99.7
char[] fromStringz(char* s) #
Convert a C-style 0 terminated string to an array of char
wchar* toString16z(wchar[] s) #
Convert array of wchars s[] to a C-style 0 terminated string.
wchar[] fromString16z(wchar* s) #
Convert a C-style 0 terminated string to an array of wchar
dchar* toString32z(dchar[] s) #
Convert array of dchars s[] to a C-style 0 terminated string.
dchar[] fromString32z(dchar* s) #
Convert a C-style 0 terminated string to an array of dchar
size_t strlenz(T)(T* s) #
portable strlen