Escape Sequences
Prev | Chapter 2. Exploring wxGlade | Next

## Escape Sequences

Escape sequences are used to define certain special characters within string literals. wxGlade supports escape sequences generally. The only exception is the null byte (“0”) and the escape sequence (“\0”) belonging to it. wxGlade can't handle null bytes.

Escape sequences like “\n” or “\t” will not touched by wxGlade. Thereby the generated source code contains excatly the same sequence as entered. The language interpreter or compiler will interpret and probably convert the sequence into control characters. For example “\n” will be converted into a line break.

Escape sequences with at least two leading backslashes e.g. “\\n” will be escaped to show exact the same sequence and don't convert it into control characters. Question marks especially double quotes will be escaped also.

Prev | Up | Next
Basics of wxGlade | Home | Best Practice