Anonymous user
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:
::* blank(s)
::* sp (space)
::* ht (horizontal tab)
::* tab (usually, the same as HT)
::* vt (vertical tab)
::* cr (carriage return)
::* ff (form feed)
::* np (new page)
::* lf (line feed)
::* nl (new line)
::* nul (null character)
::* esc (escape)
::* eof (end-of-file)
::* can (cancel)
::* bel (bell)
::* bs (backspace)
<br>
::* soh (start of heading, console interrupt)
::* eot (end of transmission)
::* etx (end of text)
::* enq (enquiry)
::* ack (acknowledge)
::* si (shift in)
::* so (shift out)
::* etb (end of transmission block)
::* syn (synchronous idle)
::* dle (data link escape)
::* dc1 (device control 1)
::* dc2 (device control 2)
::* dc3 (device control 3)
::* dc4 (device control 4)
::* em (end of medium)
::* fs (file separator)
::* gs (group separator)
::* rs (record separator)
::* us (unit separator)
::* del (delete)
<br>
Of the above, the first sixteen or so are commonly known and used. Essentially, anything below a '''blank''' in ASCII or EBCDIC ''may'' 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)
|