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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!fx29.iad.POSTED!not-for-mail From: agent@drrob1.com Newsgroups: comp.lang.ada Subject: trimming strings Message-ID: User-Agent: ForteAgent/7.20.32.1218 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@easynews.com Organization: Forte - www.forteinc.com X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly. Date: Sat, 02 Aug 2014 09:10:16 -0400 X-Received-Bytes: 1334 X-Received-Body-CRC: 908789688 Xref: news.eternal-september.org comp.lang.ada:21399 Date: 2014-08-02T09:10:16-04:00 List-Id: I am having a very difficult time understanding something. I am trying to do this using gnat on Ubuntu 14.04 system: with Ada.Strings; use Ada.Strings; with Ada.Strings.Fixed; use Ada.Strings.Fixed; subtype string255fixedtype is string (1.255); inbuf : string255fixedtype; BEGIN inbuf := Get_Line; inbuf := trim(inbuf,both); -- this does not work, error is both is not visible No combination of ada.strings.fixed.both, or ada.strings.both got it to be visible. However, I was able to get left and right to work, by using ada.strings.left and ada.strings.right. Trim_end is an enumeration type that says (left,right,both) in the books I've looked at. What am I missing? Thanks