contains
描述
如果字符串 str
包含子字符串 substr
,则
返回 tf
= contains(str
,substr
)1
(true
),否则返回 0
(false
)。
检查 tf
= contains(str
,substr
,IgnoreCase=true)str
是否包含 substr
,忽略字母大小写差异。
注意
使用 C 语言作为动作语言的 Stateflow® 图不支持 contains
运算符。
示例
输入参数
限制
此运算符不支持使用 Stateflow 结构体字段或消息。有关 Stateflow 中结构体的详细信息,请参阅Access Bus Signals。
版本历史记录
在 R2021b 中推出