Main Content

Lang.String Class

Namespace: Lang

Represents a string

Since R2026a

Description

The PQL class String represents the strings in your code.

// simple C++ variables containing string literals (tree-sitter node: string)
const char *s1 = "hello";
std::string s2 = "example";
auto s3 = "";

The various components in the C++ code can be detected as strings and then the predicates of this classes can be applied on the detected strings.

Predicates

expand all

Version History

Introduced in R2026a