跳至主要内容

strcontains 函数

strcontains 函数检查一个子字符串是否在另一个字符串中。

代码块
strcontains(string, substr)

示例

代码块
> strcontains("hello world", "wor")
true
代码块
> strcontains("hello world", "wod")
false