From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c8faa961aaf3fddb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!news.belwue.de!rz.uni-karlsruhe.de!npeer.de.kpn-eurorings.net!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Thu, 09 Mar 2006 11:15:36 +0100 From: Georg Bauhaus User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: help with string splitting References: <1141863131.984654.144550@j52g2000cwj.googlegroups.com> In-Reply-To: <1141863131.984654.144550@j52g2000cwj.googlegroups.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <44100cfa$0$12922$9b4e6d93@newsread4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 09 Mar 2006 12:09:46 MET NNTP-Posting-Host: 0af4640c.newsread4.arcor-online.net X-Trace: DXC==Te2>MbjHWUTkno\?fPDcV:ejgIfPPldTjW\KbG]kaMX:YeUX299h1\cFoN18INN_ShP3YJKgE\j\GYXUWX?Y>mT>ZF;m4];Q0X X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:3303 Date: 2006-03-09T12:09:46+01:00 List-Id: 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 end loop; end encrypt;