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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e38b3d31f83372db X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-23 15:47:18 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!212.43.194.69!fr.clara.net!heighliner.fr.clara.net!wanadoo.fr!proxad.net!latulipe.staff.proxad.net!news.uic.asso.fr!enst!enst.fr!not-for-mail From: "Beard, Frank" Newsgroups: comp.lang.ada Subject: RE: Natural to String without space? (newbie question) Date: Wed, 23 May 2001 18:45:05 -0400 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: avanie.enst.fr 990658037 70932 137.194.161.2 (23 May 2001 22:47:17 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 23 May 2001 22:47:17 +0000 (UTC) To: "'comp.lang.ada@ada.eu.org'" Return-Path: X-Mailer: Internet Mail Service (5.5.2448.0) Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.4 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:7715 Date: 2001-05-23T18:45:05-04:00 Probably the best way is: Make your own common function, such as: with Ada.Strings; use Ada.Srings; with Ada.Strings.Fixed; use Ada.Srings.Fixed; function Trim(the_String : string) return string is begin return Trim(source => the_String, side => both); end Trim; Then include it in a context clause, such as: with Ada.Text_Io; with Trim; procedure Trim_Test is number : natural := 1234; begin Ada.Text_Io.Put_Line(Trim(natural'image(number))); end Trim_Test; Hope this helps. Frank -----Original Message----- From: Tomas Hlavaty [mailto:hlavaty@labe.felk.cvut.cz] Sent: Wednesday, May 23, 2001 11:18 AM To: comp.lang.ada@ada.eu.org Subject: Natural to String without space? (newbie question) Natural'Image returns string with space at the begining. Is there any standard way how to get number without this additional character? Thanks, Tomas _______________________________________________ comp.lang.ada mailing list comp.lang.ada@ada.eu.org http://ada.eu.org/mailman/listinfo/comp.lang.ada