Is it possible to use a reverse direction for offset

François chaplais.francois at orange.fr
Thu Mar 23 11:30:32 EDT 2023


The text source is not very big.

However I implement transcoding from one language to another and I do an VERY large amount of search and replace.

I think I have quite optimized my LC code but transcoding can take 5 minutes to do, and I need the whole process to chase unexpected bugs. This is using the forward search (offset) most of the time.

Using a standalone app takes the time down to 4 minutes, which is not a sufficient gain for my usage.

François

> Le 23 mars 2023 à 16:21, Craig Newman via use-livecode <use-livecode at lists.runrev.com> a écrit :
> 
> Francois.
> 
> Who wouldn’t?
> 
> But unless you are working with VERY large datasets, I bet a handler would process quickly.
> 
> Craig
> 
>> On Mar 23, 2023, at 10:58 AM, François via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> @Ben
>> 
>> Too bad…
>> 
>> @ Craig
>> 
>> I would rather have an optimized version, I do a lot of text processing in my app.
>> 
>> Thanks to both of you!
>> François
>> 
>>> Le 23 mars 2023 à 14:43, Craig Newman via use-livecode <use-livecode at lists.runrev.com> a écrit :
>>> 
>>> @Ben.
>>> 
>>> 20 years! Congratulations!.
>>> 
>>> @Francois
>>> 
>>> This can be scripted easily. Do you need help with that?
>>> 
>>> Craig
>>> 
>>>> On Mar 23, 2023, at 8:21 AM, Ben Rubinstein via use-livecode <use-livecode at lists.runrev.com> wrote:
>>>> 
>>>> https://quality.livecode.com/show_bug.cgi?id=584 (20th anniversary this September!)
>>>> 
>>>> Also
>>>> https://quality.livecode.com/show_bug.cgi?id=8353
>>>> 
>>>> 
>>>> 
>>>> On 23/03/2023 11:35, François via use-livecode wrote:
>>>>> I would like to search for a string within another string, starting at a given position, but backward.
>>>>> In some languages, you can achieve that by providing a negative number for the initial position of the search.
>>>>> Is this possible in LiveCode?
>>>>> TIA
>>>>> François
>>>>> _______________________________________________
>>>>> use-livecode mailing list
>>>>> use-livecode at lists.runrev.com
>>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>> 
>>>> _______________________________________________
>>>> use-livecode mailing list
>>>> use-livecode at lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list