Contenuto principale

Cpp.EscapeSequence Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the escape_sequence nodes in the syntax tree of your code

Since R2026a

Description

The PQL class Cpp.EscapeSequence represents the node escape_sequence in the syntax tree of your code.

void test_escape_sequences() {
    char c1 = '\n';
    char c2 = '\x41';
    char c3 = '\101';
    char c4 = '\\';
    char c5 = '\'';
    const char* s1 = "Hello\nWorld";
    const char* s2 = "Tab:\tEnd";
    const char* s3 = "Quote: \"";
    const char* s4 = "Backslash: \\";
}

The C++ code above includes several escape_sequence occurrences such as '\n', '\x41', "\n" and "\\" that correspond to the Cpp.EscapeSequence nodes in the PQL syntax tree.

Predicates

expand all

Version History

Introduced in R2026a