mecca.lib.string

Utility functions for handling strings

Members

Functions

buildStructFormatCode
string buildStructFormatCode(string fmt, string structName, string conversionFunction)
Undocumented in source. Be warned that the author may not have intended to support it.
enumToStr
string enumToStr(E value)
Undocumented in source. Be warned that the author may not have intended to support it.
formatDecimal
char[] formatDecimal(char[] buf, T val)
Undocumented in source. Be warned that the author may not have intended to support it.
formatDecimal
char[] formatDecimal(char[] buf, bool val)
Undocumented in source. Be warned that the author may not have intended to support it.
formatFloat
char[] formatFloat(char[] buf, double val)
Undocumented in source. Be warned that the author may not have intended to support it.
formatHex
char[] formatHex(char[] buf, ulong val)
Undocumented in source. Be warned that the author may not have intended to support it.
formatPtr
char[] formatPtr(char[] buf, ulong p)
Undocumented in source. Be warned that the author may not have intended to support it.
formatPtr
char[] formatPtr(char[] buf, void* p)
Undocumented in source. Be warned that the author may not have intended to support it.
getNextNonDigitFrom
ulong getNextNonDigitFrom(string fmt)
Undocumented in source. Be warned that the author may not have intended to support it.
nogcFormat
string nogcFormat(char[] buf, T args)
Undocumented in source. Be warned that the author may not have intended to support it.
nogcFormatTmp
string nogcFormatTmp(T args)
Undocumented in source. Be warned that the author may not have intended to support it.
nogcRtFormat
string nogcRtFormat(char[] buf, string fmt, T args)
Undocumented in source. Be warned that the author may not have intended to support it.
toStringzNGC
auto toStringzNGC(string dString)

Convert a D string to a C style null terminated pointer

Static functions

hexArray
string hexArray(T[] array)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

StaticFormatter
struct StaticFormatter
Undocumented in source.
ToStringz
struct ToStringz(size_t N)
Undocumented in source.

Templates

HexFormat
template HexFormat(T)
Undocumented in source.
splitFmt
template splitFmt(string fmt)
Undocumented in source.

Meta