ocean.text.util.StringC

Module for conversion between strings in C and D. Needed for C library bindings.

Usage:

mstring text;

char* cText = StringC.toCString(text);
mstring text = StringC.toDString(cText);

FIXME: the functions here are not memory safe, they need to be re-written to accept ref char[].

Members

Classes

StringC
class StringC

Class containing the string conversion functions

Meta

License

Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).