-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Currently there is a loop in COBOL, which always stops at the first space.
Instead of this we could use intrinsic functions to only handle trailing spaces and to improve performance as follows:
*> GnuCOBOL (+ gcobol) only
MOVE FUNCTION
STORED-CHAR-LENGTH (some-text) TO last-pos
*> ISO2002+
MOVE FUNCTION
LENGTH ( FUNCTION TRIM ( some-text TRAILING ) ) TO last-posThe question is: should embedded spaces be allowed and would you be interested in something like this?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels