From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Image attribute (yet again)
Date: Sun, 26 Apr 2020 19:09:10 +0200
Date: 2020-04-26T19:09:10+02:00 [thread overview]
Message-ID: <r84f7m$20l$1@dont-email.me> (raw)
In-Reply-To: <2c769c87-72f2-4107-b0bf-3846e3ae6c7a@googlegroups.com>
On 4/26/20 4:16 PM, Jere wrote:
>>
> This might be a good time to ask since this comes up all the time
> for me, but where are the formatting options for hexadecimal
> to String. All I have found so far is the Put operation
> in the various "_IO" packages and generics, but it isn't
> useful at all for formatting hexadecimal values in real world
> scenarios. I pretty much reinvent the wheel each time
> I have some variant of needing this functionality. One of
> these days I'll get around to making my own generic
> version of it, but if the Ada standard provides a means
> to do it, that would be optimal. The only option I have
> found is the Put operation, but it is pretty abysmal to
> use. Are there any solutions to this that I am missing
> from within the Ada standard?
I can't tell what problem you're talking about. Ada.Text_IO's numeric-I/O pkgs,
sometimes combined with String-handling functions and basic 1-D array operations
seem to provide everything one could want.
Pkg PragmARC.Images has been around for a long time and provides generic Image
functions for numeric types with width, zero-fill, and base options.
https://github.com/jrcarter/PragmARC
--
Jeff Carter
"I'm a kike, a yid, a heebie, a hook nose! I'm Kosher,
Mum! I'm a Red Sea pedestrian, and proud of it!"
Monty Python's Life of Brian
77
next prev parent reply other threads:[~2020-04-26 17:09 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-20 15:24 Image attribute (yet again) Stephen Davies
2020-04-25 22:35 ` Stephen Davies
2020-04-26 6:05 ` J-P. Rosen
2020-04-26 14:16 ` Jere
2020-04-26 17:09 ` Jeffrey R. Carter [this message]
2020-04-26 17:33 ` Jere
2020-04-27 12:33 ` J-P. Rosen
2020-04-27 12:50 ` Jere
2020-04-27 13:42 ` J-P. Rosen
2020-04-27 14:05 ` Jere
2020-04-27 14:55 ` Jeffrey R. Carter
2020-04-28 6:04 ` J-P. Rosen
2020-04-27 14:10 ` Jere
2020-04-28 6:02 ` J-P. Rosen
2020-04-28 13:03 ` Jere
2020-04-26 18:40 ` Oliver Kellogg
2020-04-26 18:42 ` Oliver Kellogg
2020-04-26 18:43 ` Oliver Kellogg
2020-04-27 12:52 ` Jere
2020-05-20 1:52 ` Shark8
2020-04-26 18:57 ` Stephen Davies
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox