Escape sequences in strings

Problem characters such as ' can be included in strings by preceding them with a backslash character. Thus `\'' represents a string consisting of a single ' character. Likewise, `\\' represents a string consisting of a single \ character.

Non printable characters can be included by using a backslash to precede the decimal (ASCII) code of the character or the standard ASCII mnemonic for the character. Thus `\13' and `\cr' both represent the carriage return character. The menonics are case insensitive (`\cr' = `\Cr' = `\CR' = `\cR').

Furthermore, the sequence `\n' represents the end-of-line sequence, which can be a multi-character sequence, depending on the underlying operating system.


Herman Venter

This is Slim documentation as snarfed on 27 May 1999 by dB.