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,80435549e92d4e0c X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bos-service1.raytheon.com!dfw-service2.ext.ray.com.POSTED!53ab2750!not-for-mail From: Jeffrey Carter User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Charles container library usage examples References: <1125827360.091136.285250@g47g2000cwa.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Tue, 06 Sep 2005 09:22:36 -0700 NNTP-Posting-Host: 147.24.111.90 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.ray.com 1126023758 147.24.111.90 (Tue, 06 Sep 2005 11:22:38 CDT) NNTP-Posting-Date: Tue, 06 Sep 2005 11:22:38 CDT Organization: Raytheon Company Xref: g2news1.google.com comp.lang.ada:4479 Date: 2005-09-06T09:22:36-07:00 List-Id: David Trudgett wrote: > > Yep. I used the ordered map instead of the hashed map. By the way, > does Charles have general purpose hashing functions, or do you need to > roll your own? I thought I saw a string hash function in PragmARC. Is > it suitable for use in Charles? The PragmAda Reusable Components contain an implementation of Pearson's hashing function for Strings. This function returns a byte as the hash value. This is not directly appropriate for the components in Ada.Containers, which require a much larger range of values. Whether it is appropriate for the Charles library is another question, and not one I can answer. -- Jeffrey Carter "Now go away or I shall taunt you a second time." Monty Python and the Holy Grail E-mail: jeffrey_r_carter-nr [commercial-at] raytheon [period | full stop] com