STRINGS

string manipulation

charsub        character substitution
cut            cut text, by default on blanks
cuts           cut y. at x. (conjunction)
deb            delete extra blanks
dlb            delete leading blanks
dltb           delete leading and trailing blanks
dtb            delete trailing blanks
delstring      delete occurrences of x. from y.
ljust          left justify
rjust          right justify
rplc           replace in string
ss             string search for x. in y.

dropafter      drop after x. in y.
dropto         drop to x. in y.
takeafter      take after x. in y.
taketo         take to x. in y.

For example:

  3       =  'de' # cuts _1 'abcdefg'
  'abcfg' =  'de' delstring 'abcdefg'
  'abcde' =  'de' dropafter 'abcdefg'
  'defg'  =  'de' dropto    'abcdefg'
  'fg'    =  'de' takeafter 'abcdefg'
  'abc'   =  'de' taketo    'abcdefg'

Defined items
NameClassDescription
cutsVerbcut y. at x. (conjunction)
cutVerbcut text, by default on blanks
debVerbdelete extra blanks
dlbVerbdelete leading blanks
dltbVerbdelete leading and trailing blanks
dtbVerbdelete trailing blanks
delstringVerbdelete occurrences of x. from y.
ljustVerbleft justify
rjustVerbright justify
ssVerbstring search
dropafterVerbdrop after x. in y.
droptoVerbdrop to x. in y.
takeafterVerbtake after x. in y.
taketoVerbtake to x. in y.
charsubVerbcharacter substitution
rplcVerbreplace in string

cuts................ (v) cut y. at x. (conjunction)

string (verb cuts n) text
  n=_1  up to but not including string
  n= 1  up to and including string
  n=_2  after but not including string
  n= 2  after and including string

cut................. (v) cut text, by default on blanks

deb................. (v) delete extra blanks

dlb................. (v) delete leading blanks

dltb................ (v) delete leading and trailing blanks

dtb................. (v) delete trailing blanks

delstring........... (v) delete occurrences of x. from y.

ljust............... (v) left justify

rjust............... (v) right justify

ss.................. (v) string search

dropafter........... (v) drop after x. in y.

dropto.............. (v) drop to x. in y.

takeafter........... (v) take after x. in y.

taketo.............. (v) take to x. in y.

charsub............. (v) character substitution

characterpairs charsub data
For example:
   '-_$ ' charsub '$123 -456 -789'
 123 _456 _789
Use <rplc> for arbitrary string replacement.

rplc................ (v) replace in string

replace characters in text string
syntax: text rplc old;new

system\main\strings.ijsRelease: 4.02/1998-11-13/12:26