File extension is in extensions list: Difference between revisions

Content added Content deleted
(→‎{{header|REXX}}: added support for blanks in the filename and/or file extension.)
Line 115: Line 115:
<lang rexx>/*REXX program displays if a filename has a known extension (per a list)*/
<lang rexx>/*REXX program displays if a filename has a known extension (per a list)*/
/*╔════════════════════════════════════════════════════════════════════╗
/*╔════════════════════════════════════════════════════════════════════╗
║ The list of extenions below have blanks encoded as 'ff'x.
║ The list of extensions below have blanks encoded as 'ff'x. ║
║ The extension pointed to has a 'ff'x after the period──────────┐ ║
║ The extension pointed to has a 'ff'x after the period──────────┐ ║
║ (which is used to indicate a true blank, due to │ ║
║ (which is used to indicate a true blank, due to │ ║
║ REXX's use of blanks in lists as delimitors). │ ║
║ REXX's use of blanks in lists as delimiters). │ ║
╚══════════════════════════════════════════════════════════════════↓═╝*/
╚══════════════════════════════════════════════════════════════════↓═╝*/
extensions='.bat .cmd .com .dat .dll .exe .ini .jpg .jpeg .log .txt . ys'
extensions='.bat .cmd .com .dat .dll .exe .ini .jpg .jpeg .log .txt . ys'