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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.200.46.61 with SMTP id r58mr2884233qta.7.1472224575399; Fri, 26 Aug 2016 08:16:15 -0700 (PDT) X-Received: by 10.157.44.69 with SMTP id f63mr287474otb.2.1472224575357; Fri, 26 Aug 2016 08:16:15 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!c52no11103073qte.1!news-out.google.com!b4ni576iti.0!nntp.google.com!x131no153471ite.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 26 Aug 2016 08:16:15 -0700 (PDT) In-Reply-To: <2e60067a-2169-4ef2-a619-d23f6dfc1ea1@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=57.79.21.1; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 57.79.21.1 References: <5d516246-3a7c-4be5-abef-c34fb0f5c753@googlegroups.com> <21dcddb3-1e20-4e54-afc7-fb66b1b6021e@googlegroups.com> <5477ca75-bdc1-4464-9fda-35a4a4b9b181@googlegroups.com> <8fdbb4cb-f250-4844-9a7e-8a4ff5b68554@googlegroups.com> <9ae16f03-6bb2-45b3-a166-50ee8a022f22@googlegroups.com> <4b233268-a28a-4f3d-a735-9a7097d12e03@googlegroups.com> <2e60067a-2169-4ef2-a619-d23f6dfc1ea1@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <7f1ca2e7-b2dc-4158-a7ab-4447f6fa98f9@googlegroups.com> Subject: Re: zLibAda vs ZipAda (which should I use, if any)? From: gautier_niouzes@hotmail.com Injection-Date: Fri, 26 Aug 2016 15:16:15 +0000 Content-Type: text/plain; charset=UTF-8 X-Received-Bytes: 2847 X-Received-Body-CRC: 1595216308 Xref: news.eternal-september.org comp.lang.ada:31589 Date: 2016-08-26T08:16:15-07:00 List-Id: On Friday, August 26, 2016 at 4:23:11 PM UTC+2, Aurele wrote: > > In this case, it is possible with UnZip.Streams. > > I started looking at UnZip this morning. Thanks! I looked at Globe_3D for an example but the UnZip function there seems tightly integrated with Globe_3D's drawing/GL setup features. I'm afraid you are confused. The GLOBE_3D library is using the Zip-Ada library (for managing textures and other items), but fortunately not the reverse... > Have you never considered formally documenting Zip-Ada? It depends on what you mean by "formally documenting", but there are commented package specifications, an introductory note (zipada.txt), small demos, tools, tests. For instance there is a demo called Demo_UnZip which demonstrates UnZip.Streams. I'd start from there... > > More specifically ? > > Re the Traverse_Verbose information, for my requirement I mean, I'll need to filter out the directory and name information separately for listing (display) purpose (Zip entry: "texture\sky\blue.jpg" ==> "texture\sky\" and "blue", separately). last_dot, last_slash: Natural:= 0; for i in name'Range loop case name(i) is when '.' => last_dot:= i; when '/' | '\' => last_slash:= i; end case; end loop; Or you can use Ada.Directories, there are functions to do these splits.