Talk:Strip comments from a string: Difference between revisions

m
→‎29 of 36 languages were incorrect?: added whitespace and increased indentation of a table.
(→‎29 of 36 languages were incorrect?: added a comment about assuming incorrectness.)
m (→‎29 of 36 languages were incorrect?: added whitespace and increased indentation of a table.)
Line 54:
<br>Sometimes, white space includes such things like:
 
::* &nbsp; blank(s)
::* &nbsp; sp &nbsp; &nbsp; (space)
::* &nbsp; ht &nbsp; &nbsp; (horizontal tab)
::* &nbsp; tab &nbsp; &nbsp; (usually, the same as HT)
::* &nbsp; vt &nbsp; &nbsp; (vertical tab)
::* &nbsp; cr &nbsp; &nbsp; (carriage return)
::* &nbsp; ff &nbsp; &nbsp; (form feed)
::* &nbsp; np &nbsp; &nbsp; (new page)
::* &nbsp; lf &nbsp; &nbsp; (line feed)
::* &nbsp; nl &nbsp; &nbsp; (new line)
::* &nbsp; nul &nbsp; &nbsp; (null character)
::* &nbsp; esc &nbsp; &nbsp; (escape)
::* &nbsp; eof &nbsp; &nbsp; (end-of-file)
::* &nbsp; can &nbsp; &nbsp; (cancel)
::* &nbsp; bel &nbsp; &nbsp; (bell)
::* &nbsp; bs &nbsp; &nbsp; (backspace)
<br>
::* &nbsp; soh &nbsp; &nbsp; (start of heading, console interrupt)
::* &nbsp; eot &nbsp; &nbsp; (end of transmission)
::* &nbsp; etx &nbsp; &nbsp; (end of text)
::* &nbsp; enq &nbsp; &nbsp; (enquiry)
::* &nbsp; ack &nbsp; &nbsp; (acknowledge)
::* &nbsp; si &nbsp; &nbsp; (shift in)
::* &nbsp; so &nbsp; &nbsp; (shift out)
::* &nbsp; etb &nbsp; &nbsp; (end of transmission block)
::* &nbsp; syn &nbsp; &nbsp; (synchronous idle)
::* &nbsp; dle &nbsp; &nbsp; (data link escape)
::* &nbsp; dc1 &nbsp; &nbsp; (device control 1)
::* &nbsp; dc2 &nbsp; &nbsp; (device control 2)
::* &nbsp; dc3 &nbsp; &nbsp; (device control 3)
::* &nbsp; dc4 &nbsp; &nbsp; (device control 4)
::* &nbsp; em &nbsp; &nbsp; (end of medium)
::* &nbsp; fs &nbsp; &nbsp; (file separator)
::* &nbsp; gs &nbsp; &nbsp; (group separator)
::* &nbsp; rs &nbsp; &nbsp; (record separator)
::* &nbsp; us &nbsp; &nbsp; (unit separator)
::* &nbsp; del &nbsp; &nbsp; (delete)
 
<br>
Of the above, the first sixteen or so are commonly known and used. Essentially, anything below a '''blank''' in ASCII or EBCDIC &nbsp; ''may'' &nbsp; be considered a control character, and in addition, ASCII also has '7f'x (DEL). Note also that some control codes have more than one mnemonic just to keep things interesting.
<br> I think whitespace (in the task's description should be defined or the word '''BLANKS''' should be used instead.
<br>It appears that most languages seem to trim blanks, not white space anyway. -- [[User:Gerard Schildberger|Gerard Schildberger]] 19:45, 3 September 2012 (UTC)