Re: Best practices for creating and comparing lists of text?
Re: Best practices for creating and comparing lists of text?
- Subject: Re: Best practices for creating and comparing lists of text?
- From: Emmanuel <email@hidden>
- Date: Sat, 17 Dec 2005 16:09:23 +0100
At 1:22 PM +0000 12/17/05, has wrote:
And frankly, if the performance of this code isn't good enough then
it'd make far more sense to switch to a better language.
... or (but that would have made has' post still longer) to use the
Satimage osax.
on sati_parse_list(s)
-- add library name where it's missing
set s to change "^[^=]+$" into "\\0=\\0" in s with regexp
-- find first items
set Modulenames to (find text "^([^#].*)=" in s using "\\1"
with regexp, string result and all occurrences)
-- find second items
set Libnames to (find text "^([^#].*)=(.*)$" in s using "\\2"
with regexp, string result and all occurrences)
return {Modulenames, Libnames}
end sati_parse_list
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden