|
Boost : |
From: Paul A. Bristow (boost_at_[hidden])
Date: 2002-02-07 05:09:01
Like Gene Callahan, I wanted to create sequential file names using a minimum
number of characters, by outputting integer values using radix 32, 36, 64,
80 etc, with completely arbitrary character sets (at present 8 bits only
from ASCII char set). (Integer might be signed, or not, and leading 'zeros'
filled with various chars.) Also routine to input.
// Gene Callahan, Dr Dobb's Journal, Dec 1995, 131, 132 & 149.
// Generating Sequential keys in an Arbitrary Radix.
This looks quite generally useful and might be a useful item for Boost?
Gene Callahan's C version needs conversion of C++, using std::string,
perhaps templating on different integer types, and general Boostification.
Is there any interest in this?
Anyone itching to input/output using radix 13, or Adam's Memorial Universal
radix 42?
Want a file named !#$%&'()+-@[]^_{}~.txt? (It's possible!)
Does anyone know of other programs for this purpose?
(A brief web search didn't reveal much).
Paul
Dr Paul A Bristow, hetp Chromatography
Prizet Farmhouse
Kendal, Cumbria
LA8 8AB UK
+44 1539 561830
Mobile +44 7714 33 02 04
mailto:pbristow_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk