From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: help with string splitting
Date: Thu, 09 Mar 2006 11:15:36 +0100
Date: 2006-03-09T12:09:46+01:00 [thread overview]
Message-ID: <44100cfa$0$12922$9b4e6d93@newsread4.arcor-online.net> (raw)
In-Reply-To: <1141863131.984654.144550@j52g2000cwj.googlegroups.com>
isaac2004 wrote:
> an example is this
> Mother would be Mtoehr encrypted
How about a little rearrangement and some functional
decomposition (if you can afford to be a little wasteful
in the first draft):
procedure encrypt (s: Message) is
type Confusion is array(Positive range s'Range) of Positive;
function permute(s: Message) return Confusion;
new_idx: constant Confusion := permute(s);
begin
for k in s'Range loop
<copy characters to their new positions via `new_idx`>
end loop;
end encrypt;
prev parent reply other threads:[~2006-03-09 10:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-09 0:12 help with string splitting isaac2004
2006-03-09 0:44 ` jimmaureenrogers
2006-03-09 2:21 ` Jeffrey R. Carter
2006-03-09 5:54 ` isaac2004
2006-03-09 16:50 ` Martin Krischik
2006-03-09 18:31 ` isaac2004
2006-03-09 19:58 ` jimmaureenrogers
2006-03-10 10:45 ` Martin Krischik
2006-03-09 19:28 ` Jeffrey R. Carter
2006-03-09 7:43 ` Anders Wirzenius
2006-03-09 10:15 ` Georg Bauhaus [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox