pixelperfectengine.system.etc

Undocumented in source.

Public Imports

bitleveld.reinterpret
public import bitleveld.reinterpret;
Undocumented in source.

Members

Aliases

toStream
alias toStream = reinterpretAsArray
Undocumented in source.

Functions

clamp
T clamp(T input, T min, T max)

Clamps a value between of two.

cmpObjPtr
bool cmpObjPtr(O a, O b)

Compares object pointers to detect duplicates.

csvParser
S[] csvParser(S input, char separator)

Parses a comma separated string into a single array.

hashCalc
uint hashCalc(string src, uint seed)

Calculates the MurMurHashV3/32 value of a string. CTFE friendly.

intToHex
S intToHex(int i, int format)

Returns a hexadecimal string representation of the integer.

intToOct
S intToOct(int i, int format)

Returns a octal string representation of the integer.

isInterface
bool isInterface(Object o)

Checks whether object o have implemented the given interface. Checks are done on the basis of name strings.

isPowerOf2
bool isPowerOf2(T x)

Returns true if x is power of two.

max
T max(T a, T b)

Returns the greater of two values.

min
T min(T a, T b)

Returns the lesser of two values.

nextPow2
T nextPow2(T val)

From "Hackers Delight" val remains unchanged if it is already a power of 2.

parseDec
int parseDec(S s)

Parses a decimal int represented as a string. Ignores characters that are not decimal.

parseHex
int parseHex(S s)

Parses a hexadecimal int represented as a string. Ignores characters that are not hexanumeric.

parseHex
T parseHex(S s)
Undocumented in source. Be warned that the author may not have intended to support it.
parseOct
int parseOct(S s)

Parses a octal int represented as a string. Ignores characters that are not octal.

removeUnallowedDups
S removeUnallowedDups(S input, S symbolList)
Undocumented in source. Be warned that the author may not have intended to support it.
removeUnallowedSymbols
S removeUnallowedSymbols(S input, S symbolList)

Removes all symbols from the string that is not in the symbol pool.

stringArrayConv
dstring[] stringArrayConv(string[] s)

Converts string[] to dstring[]

stringArrayJoin
S stringArrayJoin(S[] input)

Joins prettyprint strings to a single string for file storage.

stringArrayParser
T[] stringArrayParser(S[] input)

Parses an array of string to an array of another value.

Meta