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

www.microapl.co.uk

⎕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 | APL Home ]