comp.lang.ada
 help / color / mirror / Atom feed
* Convert wide_string to string (as the same byte array)
@ 2012-02-24 22:01 Erich
  2012-02-24 22:25 ` Adam Beneschan
  2012-03-06  1:58 ` Randy Brukardt
  0 siblings, 2 replies; 6+ messages in thread
From: Erich @ 2012-02-24 22:01 UTC (permalink / raw)


A newbie question: I need to convert a wide_string to a (platform/
endian independent) string that represents all the bytes of the
wide_string. How do you do that?

Just to make this clear, I'm not looking for a lossy conversion based
on mapping wide_characters to characters, but for a lossless
conversion.

The reason is that I have an older package that takes a key as string
and need to use it with wide_strings as keys.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-03-07  1:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-24 22:01 Convert wide_string to string (as the same byte array) Erich
2012-02-24 22:25 ` Adam Beneschan
2012-02-24 22:58   ` Erich
2012-03-06  1:58 ` Randy Brukardt
2012-03-06 15:54   ` Adam Beneschan
2012-03-07  1:04     ` Randy Brukardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox