I don't suppose that the type of problem being solved could be delved into a
bit more?  There are a ton of string routines that I have found useful, but
they seem to be solutions waiting for a problem to solve, in this case.
j


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adrian Matthews
Sent: Wednesday, September 15, 2004 10:11 AM
To: [EMAIL PROTECTED]
Subject: RE: [U2] [UV] Processing a string

I've used that in the past for parsing strings that are several hundred
thousand chars in length but there's no significant difference until
then.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Glenn Herbert
Sent: 15 September 2004 14:22
To: [EMAIL PROTECTED]
Subject: Re: [U2] [UV] Processing a string

You could fold the string into a dynamic array and use remove:

STR.VAR= "Some really really long string that has lots and lots of
characters for test processing."
FOLDED.VAR=FOLD(STR.VAR,1); *creates dynarray of single characters

LOOP
REMOVE ACHAR FROM FOLDED.VAR SETTING MARK
UNTIL NOT(MARK) and ACHAR="" DO
  * any character processing on ACHAR
REPEAT

I'm not sure of any actual performance gain compared with simply 
STR.VAR[x,1] but it's at least an alternate approach.

At 08:31 AM 9/15/2004, you wrote:
>What is the fastest way to process a long string byte by byte.  I want
>to know if there is a faster way to do the following:
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


The information contained in this email is strictly confidential and for the
use of the addressee only, unless otherwise indicated. If you are not the
intended recipient, please do not read, copy, use or disclose to others this
message or any attachment. Please also notify the sender by replying to this
email or by telephone +44 (0)20 7896 0011 and then delete the email and any
copies of it. Opinions, conclusions (etc.) that do not relate to the
official business of this company shall be understood as neither given nor
endorsed by it.  IG Markets Limited and IG Index Plc are authorised and
regulated by the Financial Services Authority and, in Australia, by the
Australian Securities and Investments Commission.
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


This e-mail, including attachments, may include confidential and/or 
proprietary information, and may be used only by the person or entity to 
which it is addressed. If the reader of this e-mail is not the intended 
recipient or his or her authorized agent, the reader is hereby notified 
that any dissemination, distribution or copying of this e-mail is 
prohibited. If you have received this e-mail in error, please notify the 
sender by replying to this message and delete this e-mail immediately. 
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to