Jump to content

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

(→‎REXX version 3: added comments on REXX BIFs regarding whitespace. -- ~~~~)
Line 38:
:::::::::::: I found the ANSI Standard very hard to read (and understand).   There doesn't seem to be a good definition if the   '''¬'''   (not) symbol is supported (or not), or even what a blank (whitespace?) is.   I found the definitions too esoteric and obtuse.   There are too many references to ''the configuration''.   It is noted that the ''configuration'' varies system to system.   A configuration may have a category of characters in source programs called extra_letters.   Extra_letters are determined by the configuration.   A configuration may have a category of characters in source programs called other_blank_characters.   Other_blank_characters are determined by the configuration.   A configuration may have a category of characters in source programs called other_negators.   Other_negators are determined by the configuration.   A configuration may have a category of characters in source programs called other_characters.   Other_characters are determined by the configuration.   And so it goes. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 14:45, 10 June 2013 (UTC)
 
:::::::::::: 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:GerardGes,ard Schildberger|talk]]) 14:45, 10 June 2013 (UTC)
::::::::::::: Apology: I stand corrected: space(s,0) removes whitespce (not only blanks). Thanks.
 
<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.*/
/*If y is zero, this works.*/
pull x y
2,289

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.