tagion.basic.basic

Basic functions used in the tagion project

Public Imports

tagion.basic.testbasic
public import tagion.basic.testbasic;
Undocumented in source.

Members

Enums

isEqual
eponymoustemplate isEqual(T1, T2)

isEqual is the same as is() function which can be used in template filters

Functions

buf_idup
immutable(BUF) buf_idup(immutable(Buffer) buffer)
log2
int log2(ulong n)

Calculates log2

Mixin templates

FUNCTION_NAME
mixintemplate FUNCTION_NAME()

Templates

CastTo
template CastTo(T, TList...)

Finds the type in the TList which T can be typecast to

EnumText
template EnumText(string name, string[] list, bool first = true)

Builds and enum string out of a string array

assumeTrusted
template assumeTrusted(alias F)

Calling any system functions.

basename
template basename(alias K)

Template function returns the suffux name after the last '.'

isOneOf
template isOneOf(T, TList...)
mangleFunc
template mangleFunc(alias T)

Mangle of a callable symbol

staticSearchIndexOf
template staticSearchIndexOf(alias find, L...)

This template finds the index of find in the AliasSeq L. If find is a type it works the same as traits.staticIndexOf, but if func is a templeate function it will use this function as a filter