Strip control codes and extended characters from a string: Difference between revisions
Content deleted Content added
→{{header|Wren}}: More efficient. |
m added whitespace, added related tasks. |
||
Line 1: | Line 1: | ||
{{task}} |
{{task}} |
||
⚫ | |||
;Task: |
|||
⚫ | |||
Strip control codes and extended characters from a string. |
|||
⚫ | |||
⚫ | |||
⚫ | |||
:* a string with control codes and extended characters stripped |
|||
In ASCII, the control codes have decimal codes 0 through to 31 and 127. |
|||
⚫ | |||
On a non-ASCII based system, we consider characters that do not have a corresponding glyph on the ASCII table (within the ASCII range of 32 to 126 decimal) to be an extended character for the purpose of this task. |
On a non-ASCII based system, we consider characters that do not have a corresponding glyph on the ASCII table (within the ASCII range of 32 to 126 decimal) to be an extended character for the purpose of this task. |
||
{{Template:Strings}} |
|||
<br><br> |
<br><br> |
||