From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.0 required=3.0 tests=BAYES_40,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:622a:1ba9:b0:3d5:49eb:4d1e with SMTP id bp41-20020a05622a1ba900b003d549eb4d1emr1019091qtb.1.1681409539544; Thu, 13 Apr 2023 11:12:19 -0700 (PDT) X-Received: by 2002:a25:ca07:0:b0:b6c:48c3:3c1c with SMTP id a7-20020a25ca07000000b00b6c48c33c1cmr2033987ybg.13.1681409539256; Thu, 13 Apr 2023 11:12:19 -0700 (PDT) Path: eternal-september.org!news.eternal-september.org!news.szaf.org!news.uzoreto.com!peer03.ams4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 13 Apr 2023 11:12:19 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=128.175.8.12; posting-account=es6tdQoAAABG0JD-zg4XEg34h5fepyKP NNTP-Posting-Host: 128.175.8.12 References: <30b4ef1e-cca5-4837-9228-640e66d0d96bn@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5fdd4e3b-1f0d-4337-a801-01e6dbce6de5n@googlegroups.com> Subject: Re: Currency Library for Ada? From: "A.J." Injection-Date: Thu, 13 Apr 2023 18:12:19 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2224 Xref: news.eternal-september.org comp.lang.ada:65096 List-Id: J-P. Rosen, On Thursday, April 13, 2023 at 1:37:22=E2=80=AFPM UTC-4, J-P. Rosen wrote: > It's a standard package, Ada.Locales=20 Thanks for finding that! This looks like a good foundation for validating = county codes, though it doesn't appear to contain an index of them, or expa= nd into the 3-letter codes (e.g. USA vs US). I was looking into the implem= entation, and the GNAT[1] runtime seems to be true to spec, while the Drake= runtime[2] looks like it's expanding into closer to what I'm looking for w= ith its iso639 tables [3]. I may be able to build on this set, though and = use the existing structures. AJ [1] https://github.com/gcc-mirror/gcc/blob/master/gcc/ada/libgnat/a-locale.= ads & https://github.com/gcc-mirror/gcc/blob/master/gcc/ada/libgnat/a-local= e.adb [2] https://github.com/ytomino/drake/blob/master/source/environment/a-local= e.ads [3] https://github.com/ytomino/drake/blob/master/source/environment/a-local= e.adb#L60