Activity: Talk or presentation › Science to science
Description
ooRexx makes it very easy to define public routines and public classes stored in a single file (package).
This presentation introduces a set of useful public routines and public classes that are designed to ease manipulating strings. All string related BIFs (built-in-functions) are enhanced such, that it becomes possible to carry out operations in caseless mode (by default) that are otherwise case-dependent, like ABBREV(...), CHANGESTR(...), COMPARE(), COUNTSTR(...), LASTPOS(...), POS(...) or WORDPOS(...). In addition negative position and length parameters become possible, which may be known from other programming languages, e.g. WORD2(string,-2) will extract the second to last word from the given string, SUBWORD2(string,-1,-2) the last two words from the given string.
In addition the class "StringOfWords" allows for defining words assembled from non-English characters (like German umlauts), offering all of the word-BIF related functionality in form of respective methods, that also allow for negative position and length values.
Finally, this utility package defines a few comparison classes for sorting and supplies a public routine that eases its usages for sorting for the Rexx programmer.
The package works for ooRexx 3.2 and was tested under the alpha version of ooRexx 4.0.
Period
18 May 2009 → 21 May 2009
Event title
2009 International Rexx Symposium
Event type
Unknown
Degree of Recognition
International
Austrian Classification of Fields of Science and Technology (ÖFOS)