Re: String comparisons

new topic     » goto parent     » topic index » view thread      » older message » newer message
jmduro said...

This is a simple way to do the job. Something more complex would require too much computing capacity.

Not true. My WRDCOMP4.E is dated May 14 2001, and SEQCOMP5.E is dated Jan 20 2003. If i remember right, neither got contributed because of the significant pushback against Eu containing strings, so please consider that my fear of posting the code still exists. I still have the .e files, but not the test code, and not the code that actually used this day to day.

Sample test for the code included the following:

--{"c-a-t fish","catfish"}, 
--{"eeyes","eyes"}, 
--{"coookies","cookies"}, 
--{{"cookies"},{"cookies"}}, 
--{"NATO is considering allowing Yugoslav soldiers","NATO considered allowing Yugoslavian soldiers"}, 
--{"NATO is considering allowing Yugoslav soldiers","NATO considered allowing Yugoslavian soldiers"}, 
--{"NATO is considering allowing 78 Yugoslav soldiers","NATO is considering allowing 71 Yugoslav soldiers"}, 
--{{"NATO","is","considering","allowing","78","Yugoslav","soldiers"},{"NATO","is","considering","allowing","71","Yugoslav","soldiers"}}, 
--{{"the","Hook","of","Holland","gateway","to","Rotterdam",",","the","world's","biggest","port","."}, 
-- {"entrances","to","Rotterdam",",","the","world's","largest","port","."}}, 
 
--{"long",""}, 
--{"this bad english","the english muffins"}, 
--{"extrememly","extremely"}, 
--{"aaarrrggg","arrgggg"}, 
--{{"1","2"},{"1","3"}}, 
--{{"1","2","3"},{"1","2","4"}}, 
----{{"auto","-","parser"},{"autoparser"}}, 
--{"auto-parser","autoparser"}, 
--{{"the","cat","ate","a","big","dinner"},{"the","cat","aet","a","big","lunch"}}, 
 
 
  testdata[x][1] = {"Some","40","-","50","ships","blocked","the","Hook","of","Holland",",","gateway","to","Rotterdam","port","."} 
  testdata[x][2] = {"More","than","100","vessels","blocked","the","entrances","to","Rotterdam",",","the","world's","biggest","port","."} 

So, i've done it, 14 years ago, it won't take too many computing resources.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu