Talk:Strip a set of characters from a string: Difference between revisions

Line 39:
 
:::::::::::: As far as the '''strip''' BIF, that function is also dependent on what blanks are (whitespace).   The '''parse''' statement also depends on what the definition of whitespace is, as well as the '''space''' BIF.   There seems to be a lot of BIFs in REXX that use the term ''blanks'' (which means whitespace); some of which are:   WORD, WORDPOS, DATATYPE, X2C, X2B, X2D, B2C, B2X, JUSTIFY, WORDINDEX, WORDLENGTH, SUBWORD, DELWORD, FIND, WORDS, TRIM, and possibly others.   Note that some of the BIFs are "extensions" or legacy BIFs.   Because REXX numbers can have leading/imbedded/trailing ''blanks'' in them, whitespace can be more insidious, causing numeric comparisons instead of character comparisons for '''IF''' and/or '''WHEN''' statements. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Ges,ard Schildberger|talk]]) 14:45, 10 June 2013 (UTC)
::::::::::::: Apology: I stand corrected: space(s,0) removes whitespce (not only blanks). Thanks. ..[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 08:01, 19 June 2013 (UTC)
<br><br>The following is a simplier albeit restricted version of a REXX program elsewhere on Rosetta Code:
<lang rexx>/*REXX program gets two numbers and show their sum.*/
2,289

edits