Talk:Strip whitespace from a string/Top and tail: Difference between revisions
(→task clarification: added verbage on ''printable characters''. -- ~~~~) |
m (fixed HTML tag.) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 12: | Line 12: | ||
Also note that the tab character has a printable character (although, in most circumstances, |
Also note that the tab character has a printable character (although, in most circumstances, |
||
it's ''converted'' to a blank (or a number of blanks). It's graphic on my computer is '''○''' (a circle). |
it's ''converted'' to a blank (or a number of blanks). It's graphic on my computer is <big> '''○''' </big> (a circle). |
||
Also, only three characters don't have a printable characters, '00'x, ''the'' blank, and 'ff'x. Of course, this is very |
Also, only three characters don't have a printable characters, '00'x, ''the'' blank, and 'ff'x. Of course, this is very |
||
dependent on the '''code page''' being used. -- [[User:Gerard Schildberger|Gerard Schildberger]] 07:06, 17 December 2012 (UTC) |
dependent on the '''code page''' being used. -- [[User:Gerard Schildberger|Gerard Schildberger]] 07:06, 17 December 2012 (UTC) |
||
== Error in '''C''' code == |
|||
When string is empty, the result is undefined. |
Latest revision as of 17:29, 24 May 2018
task clarification
In the sentence:
For the purposes of this task whitespace includes non printable characters such as the space character, the tab character,
and other such characters that have no corresponding graphical representation.
Wouldn't it be better to use:
... , and other such characters that may have no corresponding ...
-- Gerard Schildberger 17:32, 14 September 2012 (UTC)
Also note that the tab character has a printable character (although, in most circumstances, it's converted to a blank (or a number of blanks). It's graphic on my computer is ○ (a circle).
Also, only three characters don't have a printable characters, '00'x, the blank, and 'ff'x. Of course, this is very dependent on the code page being used. -- Gerard Schildberger 07:06, 17 December 2012 (UTC)
Error in C code
When string is empty, the result is undefined.