Package: matlab.unittest.constraints
Comparator for two strings, character arrays, or cell arrays of character arrays
StringComparator
creates a comparator for two strings, character arrays, or cell arrays of character arrays. The comparator is satisfied if the two values are equal. By default, StringComparator
checks that the values have equal size and class, and then performs a case-sensitive comparison of each value.
StringComparator(
creates
a comparator with additional options specified by one or more Name,Value
)Name,Value
pair
arguments.
Specify optional
comma-separated pairs of Name,Value
arguments. Name
is
the argument name and Value
is the corresponding value.
Name
must appear inside quotes. You can specify several name and value
pair arguments in any order as
Name1,Value1,...,NameN,ValueN
.
|
Indicator if the comparator is insensitive to case, specified
as Default: |
|
Indicator if the comparator is insensitive to whitespace characters,
specified as Default: |
|
Indicator if the comparator is insensitive to case, specified
in the name-value pair argument, |
|
Indicator if the comparator is insensitive to whitespace characters,
specified in the name-value pair argument, |
Value. To learn how value classes affect copy operations, see Copying Objects.