Contents | Index | < Browse | Browse >
ABBREV (<longstring>,<shortstring>,[<length>])
COMPARE (<string1>,<string2>,[<padchar>])
FIND (<haystack>, <needle>)
INDEX (<haystack>,<needle>, [<startpos>])
LASTPOS (<needle>,<haystack>,[<startpos>])
POS (<needle>,<haystack>,[<startpos>])
VERIFY (<string>, <reference>, [{'NOMATCH'|'MATCH'}], [<startpos>])
Related functions:
BITCOMP
BITTST
DATATYPE
Also see Bit manipulation functions
Comparisons of one type or another are one of the most frequent tasks of
any program. Comparisons allow a program to branch off to different code
based on different conditions. Comparison operators give ARexx the
standard tools for matching strings, but these functions extend the power
of the operators, allowing quick checks for a substring (what Cowlishaw
so elegantly calls a 'needle') in a string (the 'haystack'), or for a word
of phrase within a string of words.
Next: String functions | Prev: BITXOR() | Contents: Function reference