ŒDBR Delimited Blank Removal


One-argument form

Used with character data to remove leading and trailing blanks and compress embedded multiple blanks to one blank. The argument must be a simple character vector or scalar.

             ŒDBR '    JAN    FEB   MAR APRIL      MAY         '
       JAN FEB MAR APRIL MAY

Two-argument form

A left-hand argument can be included. It defines a character or characters to be used as delimiters in the right-hand argument. Leading and trailing blanks, and blanks preceding and following the delimiters are suppressed. Unless the space character is included in the left argument, other blanks remain:

             '*'  ŒDBR  '  X   JAN  * FEB   MAR  *APRIL    * MAY   Y  '
       X   JAN*FEB   MAR*APRIL*MAY   Y
             '* ' ŒDBR  '  X   JAN  * FEB   MAR  *APRIL    * MAY   Y  '
       X JAN*FEB MAR*APRIL*MAY Y

Topic: APLX Help : Help on APL language : System Functions & Variables : ŒDBR Delimited Blank Removal
[ Previous | Next | Contents | Index ]