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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,73989f41631a6beb X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: What's the deal with "slice" in Ada.Strings.Bounded Date: 1997/07/16 Message-ID: #1/1 X-Deja-AN: 257244415 References: <33CBDCDF.751F5ECB@digicomp.com> Organization: New York University Newsgroups: comp.lang.ada Date: 1997-07-16T00:00:00+00:00 List-Id: Jan says <> Well the answer to this is amazingly obvious, and no doubt lots of people will reply with a specific answer (use To_Bounded_String), but perhaps more useful is to describe how you could easily have found the answer to this yourself. If you are using a package like Bounded_String, then at least read through the spec to see what routines are there. If you don't understand one of them, look it up in the RM (the RM is not easy reading in general, but Annex A is generally quite accessible). If you do this, you will happen (almost immediately, it is right at the front) on: function To_Bounded_String (Source : in String; Drop : in Truncation := Error) return Bounded_String; and you can probably guess how to use this without even needing the RM