Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CHRTRAN and remove characters
Message
From
13/10/2004 10:42:52
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00950654
Message ID:
00951069
Views:
17
>Fabio,
>
>>2004-1999 = 5 years, where is VFPT ???
>
>Working on more important things I suppose, especially since strtran() works.
>
>>Why this is not write into the Help Doc ?
>
>I've submitted a doc update request along time ago. Did you?
>
>>A simple optimization is that of do the substituytion right to left,
>
>That is no optimization at all it still ends up moving the exact same number of bytes as doing it left to right.

???? David, I have some doubt
'ABABABA'
remove B
* on place left to right
'A'+move 5 chars -> 'AABABA'
'AA'+ move 3 chars -> 'AAABA'
'AAA'+ move 1 chars -> 'AAAA'
* end with 5+3+1 = 9 chars moved

* on place right to left
'ABABA' + move 1 chars -> 'ABABAA'
'ABA'   + move 2 chars -> 'ABAAA'
'A'     + move 3 chars -> 'AAAA'
* end with 1+2+3 = 6 chars moved
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform