rgf_util2.rex

Publikation: Beitrag in Buch/KonferenzbandBeitrag in Konferenzband

Abstract

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.
OriginalspracheEnglisch
Titel des Sammelwerks2009 RexxLa International Rexx Language Symposium Proceedings
Herausgeber*innenRené Vincent Jansen
ErscheinungsortAmsterdam
VerlagRexx Language Association
Seiten150-169
Seitenumfang20
ISBN (Print)9789403729763
PublikationsstatusVeröffentlicht - 2023
Veranstaltung2009 - 20th Annual Rexx Symposium - Chilworth Manor, Winchester, Großbritannien/Vereinigtes Königreich
Dauer: 17 Mai 200921 Mai 2009

Publikationsreihe

ReiheRexxLA Symposium Proceedings Series
ISSN1534-8954

Konferenz

Konferenz2009 - 20th Annual Rexx Symposium
Land/GebietGroßbritannien/Vereinigtes Königreich
OrtWinchester
Zeitraum17/05/0921/05/09

Österreichische Systematik der Wissenschaftszweige (ÖFOS)

  • 102015 Informationssysteme
  • 102022 Softwareentwicklung
  • 502050 Wirtschaftsinformatik

Zitat