Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looking for freee and fast URLDecode function
Message
 
 
À
19/04/2002 03:18:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00646395
Message ID:
00647662
Vues:
27
Andrus,

You probably still want to do a $ test so that you can get an early exit out of that loop, unless the strings you are decoding have a high incidence of every possible character in them. You might also want to do some analysis and check the frequency of occurance of each escaped character on average and use an array to store the order that would optimize the code a lot.

If you want zip up a couple of these huge url strings and email them to me I'll take a look and see if there's anything else that would help. I might even crank up the VC++ compiler and do this the right way *bg*.

>Sorry, I dont have C compiler and experiences to work with it.
>
>
>Maybe this vfp program is faster than previous code:
>
>
>for i=0 to 255
>  cRes = strtran( cRes, '%'+left( TRANSFORM(i,'@0'),2), chr(i) )
>  endfor
>
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform