Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reverse comma-delimited string
Message
From
13/09/2019 01:00:37
 
 
To
12/09/2019 16:34:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01670542
Message ID:
01670819
Views:
47
>>>That sounds interesting. I am dealing a lot with large strings and files, and that could significantly improve performance.
>>I'll work on it tonight.
>
>Actually, I'll wait to hear some feedback and work on it this weekend.
>
>>What are some of the API functions you'd like to see? I'll use a FSTR prefix, for "fast string."
>>FSTRNEW(nSize)
>>FSTRBEF("new text to prepend", lcName)
>>FSTRAFT(lcName, "new text to append")
>>FSTRMID(lcName, nStartingChar, "new text to insert")
>>FSTRLEN(lcName)
>>FSTRZAP(lcName)
>>FSTRFREE(lcName)
>>FSTRDEL(lcName, nStart, nLength)
>>FSTRCHRTRAN(lcName, cSearchString, cReplaceString)
>>lcString = FSTRSUBSTR(lcName, nStart, nLength)
>>lcString = FSTRDATA(lcName[, .t.]) && .t. -- Delete after extract?

That's a lot already, only one I would like to see is STREXTRACT().
Christian Isberner
Software Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform