pgator.util.hexconv

Utilities to convert hex strings to numbers. Authors : David L. 'SpottedTiger' Davis Licence : Public Domain / Contributed to Digital Mars

Members

Functions

isHex
bool isHex(string sx)

Authors : David 'SpottedTiger' L. Davis Created : 04.May.05 *

ultox
string ultox(in ulong ul)

Accepts any positive number from 0 to 18,446,744,073,709,551,615 and the returns an even number of hex strings up to 16 characters (from 0x0 to 0xFFFFFFFFFFFFFF). * Authors : David 'SpottedTiger' L. Davis Created : 04.May.05 *

xtoul
ulong xtoul(string sx)

Converts a Hex string from 0x0 to 0xFFFFFFFFFFFFFF into a ulong value 0 to 18,446,744,073,709,551,615 also it handles the lowercase 'a' thru 'f'. * Authors : David 'SpottedTiger' L. Davis Created : 03.May.05 *

Meta