www.digitalmars.com         C & C++   DMDScript  

c++.stlsoft - Integer to string conversions

reply "Pablo Aguilar" <paguilarg hotmail.com> writes:
One question... why is it there's no way to use the 
[unsigned_]integer_to_string functions with a custom radix?

I needed to convert process ids to hex strings, and the obvious candidate 
would've been in the integer_to_string family, but I can't get hex :-(


Pablo 
Jun 01 2005
next sibling parent reply "Matthew" <admin.hat stlsoft.dot.org> writes:
Just never done yet. The basic mechanism is there - just expand (+ and -) the
character table - and it's always been the 
intention to expand it thusly. If you want to have a go, feel free. :-)

"Pablo Aguilar" <paguilarg hotmail.com> wrote in message
news:d7l0bl$2ajk$1 digitaldaemon.com...
 One question... why is it there's no way to use the
[unsigned_]integer_to_string functions with a custom radix?

 I needed to convert process ids to hex strings, and the obvious candidate
would've been in the integer_to_string 
 family, but I can't get hex :-(


 Pablo
 
Jun 01 2005
parent reply "Pablo Aguilar" <paguilarg hotmail.com> writes:
"Matthew" <admin.hat stlsoft.dot.org> wrote in message 
news:d7l362$2do7$1 digitaldaemon.com...
 Just never done yet. The basic mechanism is there - just expand (+ and -) 
 the character table - and it's always been the intention to expand it 
 thusly. If you want to have a go, feel free. :-)
Ok, I willl, thanks... BTW, I just received approval from SourceForge on the install utility I mentioned before, still interested? Pablo
Jun 01 2005
parent "Matthew" <admin.hat stlsoft.dot.org> writes:
"Pablo Aguilar" <paguilarg hotmail.com> wrote in message
news:d7l455$2ems$1 digitaldaemon.com...
 "Matthew" <admin.hat stlsoft.dot.org> wrote in message
news:d7l362$2do7$1 digitaldaemon.com...
 Just never done yet. The basic mechanism is there - just expand (+ and -) the
character table - and it's always been 
 the intention to expand it thusly. If you want to have a go, feel free. :-)
Ok, I willl, thanks...
Cool
 BTW, I just received approval from SourceForge on the install utility I
mentioned before, still interested?
Indeed.
Jun 01 2005
prev sibling parent "Matthew Wilson" <matthew hat.stlsoft.dot.org> writes:
Have just implemented an integer_to_hex_string() set of functions, that will
appear in the next alpha release of STLSoft 1.10.

Only took four years! ;-)

"Pablo Aguilar" <paguilarg hotmail.com> wrote in message
news:d7l0bl$2ajk$1 digitaldaemon.com...
 One question... why is it there's no way to use the
 [unsigned_]integer_to_string functions with a custom radix?

 I needed to convert process ids to hex strings, and the obvious candidate
 would've been in the integer_to_string family, but I can't get hex :-(


 Pablo
Jul 12 2009