cc:Mail Link to SMTP Undeliverable Message: Unknown user: Zaphod

new topic     » topic index » view thread      » older message » newer message

There are 4 messages totalling 175 lines in this issue.

Topics of the day:

  1. V2os and EU
  2. win32lib 'List
  3. split() function (2)

----------------------------------------------------------------------

Date:    Sun, 30 Apr 2000 12:29:21 -0400
From:    Norm Goundry <bonk1000 at HOTMAIL.COM>
Subject: Re: V2os and EU

Caballero,

Would I like to help you do a port to V2os?  Yes!  I certainly would.  As
to my using assembler, well, its been years since, but I could dust off
those parts of my brain where it was last left off...

And with Robert's impending C compiler hanging over our heads, the timing
couldn't be better.  Its early in the week since we both posted, so perhaps
there are a few others out there who might be better at that than I, let's
hear from you if you are game for this also.

I think that EU and V2os will make a dynamite combination.  Speed in the OS
and continued more speed in the programming.  Please give me a bit more of
your accomplishments so far, and I will begin to help as much as I can
right from now.  BTW, are you registered with V2?  I am not yet, but
perhaps I should so that we can get some more help where needed from the
original crew in Holland.

As they say here in western Canada: let's 'give 'er!'.

Regards,
Norm

------------------------------

Date:    Sun, 30 Apr 2000 17:11:41 -0400
From:    wolfgang fritz <wolfritz at KING.IGS.NET>
Subject: win32lib 'List

Has anyone been able to create a list with three lines using the standard
font ?
Mine always jump from 2 to 4... no three possible ???
Wolf

------------------------------

Date:    Sun, 30 Apr 2000 20:32:51 PDT
From:    No Solution <solutionnone at HOTMAIL.COM>
Subject: split() function

Hello all .

Anybody that's programmed in perl or PHP knows that the split() function is
extremely useful.

When i first downloaded Euphoria, I was suprised that there was no split
function seeing as it's main datatype can be used to express strings. So one
day i set out to write my own split() function, after several bad attempts,
i came to a very obvious and efficient function.

here it is :

global function split(atom char,  sequence string)
  sequence ret
  integer c
  ret = {{}}
  c = 1
  for i = 1 to length(string) do
    if string[i] = char then
      ret = append(ret,{})
      c = length(ret)
    else
      ret[c] &= string[i]
    end if
  end for
  return ret
end function

so far you can only use atoms to use a delimiters to split strings by.

use the function like this:

sequence s,words

s = "hello!world"

words = split('!',s)

anybody who writes euphoria programs that require text parsing would find
this function extremely useful,if they haven't written it already.

Ian Smith




________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

------------------------------

Date:    Sun, 30 Apr 2000 23:45:51 -0400
From:    "Lucius L. Hilley III" <lhilley at CDC.NET>
Subject: Re: split() function

    Do a search for CSV or comma separated values.  Or just the word comma.
And, narrow the search to messages by me, Lucius.  You will find that it has
it includes such a tool that is very similar to your split().  It uses an
object, (sequence or atom) as a split delimiter.  It is not currently
available at my website.  I will have to correct that oversight on my part.

        Sincerely, Lucius L. Hilley III
        lhilley at cdc.net   ICQ: 9638898 (memory hog)
                          AIM: LLHIII

> ---------------------- Information from the mail
header -----------------------
> Sender:       Euphoria Programming for MS-DOS
<EUPHORIA at LISTSERV.MUOHIO.EDU>
> Poster:       No Solution <solutionnone at HOTMAIL.COM>
> Subject:      split() function
> --------------------------------------------------------------------------
-----
>
> Hello all .
>
> Anybody that's programmed in perl or PHP knows that the split() function
is
> extremely useful.
>
> When i first downloaded Euphoria, I was suprised that there was no split
> function seeing as it's main datatype can be used to express strings. So
one
> day i set out to write my own split() function, after several bad
attempts,
> i came to a very obvious and efficient function.
>
> here it is :
>
> global function split(atom char,  sequence string)
>   sequence ret
>   integer c
>   ret = {{}}
>   c = 1
>   for i = 1 to length(string) do
>     if string[i] = char then
>       ret = append(ret,{})
>       c = length(ret)
>     else
>       ret[c] &= string[i]
>     end if
>   end for
>   return ret
> end function
>
> so far you can only use atoms to use a delimiters to split strings by.
>
> use the function like this:
>
> sequence s,words
>
> s = "hello!world"
>
> words = split('!',s)
>
> anybody who writes euphoria programs that require text parsing would find
> this function extremely useful,if they haven't written it already.
>
> Ian Smith
>

------------------------------

End of EUPHORIA Digest - 29 Apr 2000 to 30 Apr 2000 (#2000-122)
***************************************************************

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu