* Splitting a String into two separate parts
@ 1996-09-02 0:00 Dean Thompson
1996-09-05 0:00 ` Robert I. Eachus
0 siblings, 1 reply; 2+ messages in thread
From: Dean Thompson @ 1996-09-02 0:00 UTC (permalink / raw)
Hi,
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 ?
See ya
Dean Thompson
--
_____________________________________________________________________________
| Dean Thompson | E-mail - dean@seahorse.fcit.monash.edu.au |
| Bach. Computing | Office - F5.25 |
| Honours Student | Phone - +61 3 9903-1470 |
| Software Development Dept. | |
| MONASH (Caulfield Campus) | |
| Melbourne, Australia | |
+------------------------------+--------------------------------------------+
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Splitting a String into two separate parts
1996-09-02 0:00 Splitting a String into two separate parts Dean Thompson
@ 1996-09-05 0:00 ` Robert I. Eachus
0 siblings, 0 replies; 2+ messages in thread
From: Robert I. Eachus @ 1996-09-05 0:00 UTC (permalink / raw)
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...
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-09-05 0:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-09-02 0:00 Splitting a String into two separate parts Dean Thompson
1996-09-05 0:00 ` Robert I. Eachus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox