Find

搜索首个匹配的子串。

int  Find(
   uint          start,         // 位置
   const string  substring      // 搜索子串
   ) const;

参数

start

[输入]  开始搜索的字符串索引值, 或是 0 代表从头开始。

substring

[输入]  搜索的字串。

返回值

第一个匹配子串的首字母索引值; -1 如果子串未发现。