Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Single occurrence in a string
Message
De
28/03/2015 14:57:44
 
 
À
28/03/2015 13:09:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01617326
Message ID:
01617349
Vues:
75
>>Thanks to all (Dragan, Marcia and Tore). I wonder which solution is the fastest?
>>
>>Since you have all the code, why don't you test all the solutions and let us know?
>
>(Edit: This reply is for Yossi)
>
>I think Dranag's solution is the fastest and optimal, because analyze the string only once and using the minimal instruction set.
>
Imagine tcBig 650KB long with 10000 "A": the check will be done 10000 times,
If the "A" is at the end of the resulting string, will take longer ;-)))
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform