From: eachus@spectre.mitre.org (Robert I. Eachus)
Subject: Re: Splitting a String into two separate parts
Date: 1996/09/05
Date: 1996-09-05T00:00:00+00:00 [thread overview]
Message-ID: <EACHUS.96Sep5182849@spectre.mitre.org> (raw)
In-Reply-To: 50dr6o$38h@harbinger.cc.monash.edu.au
In article <50dr6o$38h@harbinger.cc.monash.edu.au> dean@seahorse.fcit.monash.edu.au (Dean Thompson) writes:
> I know that this is a really dumb question but I need to split a string
> into two parts based on the " " <space character> being the delimiter.
> I have a feeling that I need to use the Index_Non_Blank function but I
> have been unable to get the syntax correct.
> I have tried both Bounded and Unbounded strings.
> Can anybody help me ?
Yes.
What you want (assuming use clauses for clarity here) is a call to
Index(Foo, To_Set(" ")), which will return the index of the first
space character. I could put this in a program, but I'd need more
details.
Robert I. Eachus
with Standard_Disclaimer;
use Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...
--
Robert I. Eachus
with Standard_Disclaimer;
use Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...
prev parent reply other threads:[~1996-09-05 0:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-09-02 0:00 Splitting a String into two separate parts Dean Thompson
1996-09-05 0:00 ` Robert I. Eachus [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox