contains

abstract fun contains(text: String, sub: String): Boolean

判断是否包含子串。

Return

包含返回 true

Parameters

text

源字符串

sub

搜索的子串