I converted this plugin to Xojo API2, available below:
Homepage This StringUtils module in the API Version 2 is maintained by TECcompanion GmbH. The current administrative…
Update: I meanwhile converted a second library: Xojo ArrayUtils API2
I included the original version for two reasons:
- Ensuring it won’t get lost
- And for users who want, for education purposes to convert the original project themselves to API2.
As Joe’s original project contains unit tests, it is a fanastic way to learn (and check) the pitfalls of any conversion to API2. Most of it is a diligent but routine piece of work. However, as a few string manipulator (like string.Middle(x,y) in comparison to Mid(string, x, y) are now finally(!) 0-based and not longer 1-based a particular attention has to be spent on such kind of conversions.
Of course some methods could be renamed as the original command has be renamed as well in Xojo API2, but this was not part of this original version (as well to maintain easier backwards compatibility to older code). This can be added in future releases.
The available methods are:
Update: I meanwhile converted Joe Strout’s Xojo ArrayUtils methods to API2 as well.
Disclaimer: As the original toolset this version is, of course, released as public domain. Though most people will just include it in their own workflows (and make adaptions where needed) a contribution on github is highly appreciated in case of any bugs one might find. I don’t have use for all methods. I checked the unit tests, which are all working, but this alone might not yet be a guarantee that the methods are all bug-free.