crltest.ContainsPattern.ContainsSubstring Class
Namespace: crltest.ContainsPattern
Description
The crltest.ContainsPattern class provides a constraint to test if C/C++
         file contains a specific pattern.
The constraint filters out both line comments (starting with //) and block comments (enclosed in /* ... */) from the C/C++ file before searching for the pattern.
The pattern search is case-sensitive.
The constraint is designed to use with files containing C or C++ code only.
Creation
Description
               c = crltest.ContainsPattern(
               creates a constraint to test if a file contains a specified pattern. The constraint
               is satisfied by a string scalar or character vector that contains
                  pattern)pattern.
Input Arguments
Name-Value Arguments
Examples
Version History
Introduced in R2024b