Strip whitespace from a string/Top and tail: Difference between revisions
Strip whitespace from a string/Top and tail (view source)
Revision as of 15:02, 7 December 2016
, 7 years ago→{{header|COBOL}}: add IBM ILE dialect
(→{{header|COBOL}}: add IBM ILE dialect) |
|||
Line 506:
<lang cobol>DISPLAY "'" FUNCTION TRIM(str, LEADING) "'"
DISPLAY "'" FUNCTION TRIM(str, TRAILING) "'"
DISPLAY "'" FUNCTION TRIM(str) "'"</lang>
{{works with|IBM ILE COBOL}}
<lang cobol>DISPLAY "'" FUNCTION TRIML(str) "'"
DISPLAY "'" FUNCTION TRIMR(str) "'"
DISPLAY "'" FUNCTION TRIM(str) "'"</lang>
|