comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: Ada String Issue: String within Strings
Date: Fri, 01 Jun 2001 17:43:10 GMT
Date: 2001-06-01T17:43:10+00:00	[thread overview]
Message-ID: <OuQR6.53158$%i7.40953123@news1.rdc1.sfba.home.com> (raw)
In-Reply-To: 3B17A0DB.6B1B7F09@raytheon.com

>  LineItem : String(1..10) := "  ABC     ";
>  Catch : String(1..10) := "ABC       ";
  Since Catch is the same length as LineItem it can either match
starting at the first character (which this doesn't) or not at all.
You probably want
   Catch : String(1..3) := "ABC";

>  Jndex : Natural := 3;
  "Last" is a commonly used name.



  reply	other threads:[~2001-06-01 17:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-01 13:31 Ada String Issue: String within Strings Xcalibre
2001-06-01 14:04 ` Mark Johnson
2001-06-01 17:43   ` tmoran [this message]
2001-06-01 14:04 ` James Rogers
2001-06-01 14:43 ` Ted Dennison
2001-06-01 15:07   ` Ted Dennison
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox