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-24 14:56:35 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!newscore.gigabell.net!isdnet!enst!enst.fr!not-for-mail From: "Beard, Frank" Newsgroups: comp.lang.ada Subject: RE: Natural to String without space? (newbie question) Date: Thu, 24 May 2001 17:55:23 -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 990741394 7667 137.194.161.2 (24 May 2001 21:56:34 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Thu, 24 May 2001 21:56:34 +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:7737 Date: 2001-05-24T17:55:23-04:00 Well, you learn something new everyday. I didn't know you could do a rename and default a parameter when the parent function was not defaulted. Thanks for the info. Frank -----Original Message----- From: Martin Dowie [mailto:martin.dowie@nospam.baesystems.com] or, function Trim (Value : String; Side : Ada.Strings.Trim_End := Ada.Strings.Both) return String renames Ada.Strings.Fixed.Trim; Beard, Frank wrote in message news:mailman.990658037.12046.comp.lang.ada@ada.eu.org... > 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 _______________________________________________ comp.lang.ada mailing list comp.lang.ada@ada.eu.org http://ada.eu.org/mailman/listinfo/comp.lang.ada