ocean.meta.codegen.CTFE

Utilities for common CTFE operations needed for code generation

NB: because this module is often used as purely compile-time dependency it used built-in asserts instead of ocean.core.Test to reduce amount of cyclic imports. ocean.meta modules in general are not supposed to import anything outside of ocean.meta.

Members

Functions

snakeToPascal
string snakeToPascal(string value)

Converts a snake_case name to a PascalCase.

stripQualifiedPrefix
istring stripQualifiedPrefix(istring name)

Utility to strip the part before the '.' in a string.

toString
istring toString(T i)

Converts integer to string

toStringImpl
istring toStringImpl(ulong i)
Undocumented in source. Be warned that the author may not have intended to support it.

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).