kernel.core.util



template FieldNames(S,int idx = 0)
Given a struct type, gives a tuple of strings of the names of fields in the struct.

template isCharType(T)
Sees if a type is char, wchar, or dchar.

template isIntType(T)
Sees if a type is a signed or unsigned byte, short, int, or long.

template isUnsignedIntType(T)
Sees if a type is a signed or unsigned byte, short, int, or long.

template isSignedIntType(T)
Sees if a type is a signed or unsigned byte, short, int, or long.

template isFloatType(T)
Sees if a type is float, double, or real.

template isArrayType(T)
Sees if a type is an array.

template isAAType(T)
Sees if a type is an associative array.

template isPointerType(T)
Sees if a type is a pointer.

template realType(T)
Get to the bottom of any chain of typedefs! Returns the first non-typedef'ed type.

template IsLower(char c)
See if a character is a lowercase character.

template IsUpper(char c)
See if a character is an uppercase character.

template ToLower(char c)
template ToLower(char[] s)
Convert a character or string to lowercase.

template ToUpper(char c)
template ToUpper(char[] s)
Convert a character or string to uppercase.

template Capitalize(char[] s)
Capitalize a word so that the first letter is capital.

template Map(alias Templ,List...)
Compile-time map. Takes a template "function" which should take a single argument of the type of the elements of the list of values that follows. Resolves to a tuple.

template Reduce(alias Templ,List...)
Compile-time reduce. Takes a template "function" that should take two arguments of the type of the elements of the list of values that follows. The list must be at least one element long. Resolves to a single value of the type that the template function returns.

template Range(uint min,uint max)
template Range(uint max)
Compile-time range. Given lower and upper bound, yields a tuple of integers in the range [min, max).

template Cat(T...)
Compile time metafunction meant to be used with Reduce. Concatenates its first two arguments and resolves to the result of that concatentation.

char[] itoa(char[] buf, char base, long d);
This function converts an integer to a string, depending on the base passed in.

Params:
char[] buf The function will save the translated string into this character array.
char base The base of the integer value. If "d," it will be assumed to be decimal. If "x," the integer will be hexadecimal.
long d The integer to translate.

Returns:
The translated string in a character array.


Page generated by Ddoc.