Package: matlab.unittest.constraints
Superclasses: matlab.unittest.constraints.BooleanConstraint
Constraint specifying string starting with substring
StartsWithSubstring(
creates
a constraint specifying a string scalar or character vector starting
with a substring. The constraint is satisfied only if the actual value
starts with an expected prefix, prefix
)prefix
.
StartsWithSubstring(
provides
a constraint with additional options specified by one or more prefix
,Name,Value
)Name,Value
pair
arguments. Name
must
appear inside single quotes (''
). You can specify
several name-value pair arguments in any order as Name1,Value1,...,NameN,ValueN
.
|
Text at the start of the actual value, specified as a string
scalar or character vector. |
Specify optional comma-separated pairs of Name,Value
arguments.
Name
is the argument
name and Value
is the corresponding
value. Name
must appear
inside single quotes (' '
).
You can specify several name and value pair
arguments in any order as Name1,Value1,...,NameN,ValueN
.
|
Indicator if the constraint is insensitive to case, specified
as Default: |
|
Indicator if the constraint is insensitive to whitespace, specified
as Default: |
|
Indicator if the constraint is insensitive to case, specified
in the name-value pair argument, |
|
Indicator if the constraint is insensitive to whitespace, specified
in the name-value pair argument, |
|
Text at the start of the actual value, specified in the input
argument, |
Value. To learn how value classes affect copy operations, see Copying Objects in the MATLAB® documentation.
ContainsSubstring
| EndsWithSubstring
| IsSubstringOf
| Matches