Strip control codes and extended characters from a string: Difference between revisions

m
tidy
(Added PicoLisp)
m (tidy)
Line 1:
{{draft task}}
 
The task is to strip control codes and extended characters from a string. The solution should demonstrate how to achieve each of the following results:
 
Line 6 ⟶ 5:
* a string with control codes and extended characters stripped
 
In asciiASCII, the control codes have decimal codes 0 through to 31 and 127 and the extended characters have decimal codes greater than 127. On an asciiASCII based system, if the control codes and the extended characters are stripped, the resultant string would have all of its characters within the range of 32 to 126 decimal on the ascii table.
=== Ascii ===
 
In ascii, the control codes have decimal codes 0 through to 31 and 127 and the extended characters have decimal codes greater than 127. On an ascii based system, if the control codes and the extended characters are stripped, the resultant string would have all of its characters within the range of 32 to 126 decimal on the ascii table.
 
=== Non Ascii Based Systems ===
 
On a non ascii-ASCII based system, we consider characters that do not have a corresponding glyph on the asciiASCII table (within the asciiASCII range of 32 to 126 decimal) to be an extended character for the purpose of this task.
 
=={{header|J}}==
Anonymous user