主要内容

Cpp.StringContent Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the string_content nodes in the syntax tree of your code

Since R2026a

Description

The PQL class Cpp.StringContent represents the node string_content in the syntax tree of your code.

void test_string_content() {
    const char* s1 = "Hello";
    const char* s2 = "World\n";
    const char* s3 = "A \"quoted\" string";
}

The three string literals in this function contain string_content nodes for their literal content.

Predicates

expand all

Version History

Introduced in R2026a