tagion.basic.basic

Basic functions used in the tagion project

Members

Aliases

FileNames
alias FileNames = Tuple!(string, "tempdir", string, "filename", string, "fullpath")
Undocumented in source.

Enums

NameOf
eponymoustemplate NameOf(alias nameType)
Undocumented in source.
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)
fileId
const(FileNames) fileId(string ext, string prefix)
Undocumented in source. Be warned that the author may not have intended to support it.
forceRemove
void forceRemove(const(string) filename)
Undocumented in source. Be warned that the author may not have intended to support it.
isinit
bool isinit(T x)
Undocumented in source. Be warned that the author may not have intended to support it.
log2
int log2(ulong n)

Calculates log2

scopedTrusted
auto scopedTrusted(Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
tempfile
string tempfile()

Generate a temporary file name

trusted
auto trusted(Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
unitfile
string unitfile(string filename, string file)

Used in unitttest local the path package/unitdata/filename

Manifest constants

this_dot
enum this_dot;
Undocumented in source.
unitdata
enum unitdata;
Undocumented in source.

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

EnumContinuousSequency
template EnumContinuousSequency(Enum)
Undocumented in source.
EnumText
template EnumText(string name, string[] list, bool first = true)

Builds and enum string out of a string array

_staticSearchIndexOf
template _staticSearchIndexOf(int index, alias find, L...)
Undocumented in source.
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

suffix
template suffix(string name, size_t index)
Undocumented in source.

Meta