【EverEdit用户手册】Document >> FindAll(1)

 

 

1 Document >> FindAll

查找所有匹配的字符串,并输出到“输出窗口”

原型:

int FindAll(string strFind, bool bCase, bool bRegex);

1.1 参数

strFind

 [in] string类型,查找文字

bCase

 [in] bool类型,大小写敏感

bRegex

 [in] bool类型,正则表达式

1.2 返回值

int:匹配数量统计,返回找到多少处

1.3 版本

EverEdit 4.5.0(4500)及之后版本。

1.4 备注

  全字匹配选项默认关闭

1.5 使用样例

 var doc = App.ActiveDoc;
 var cnt = doc.FindAll("TYY", true, false);
 PrintLine("查找统计:" + cnt);
posted @ 2024-12-14 20:37  tyysoft  阅读(7)  评论(0)    收藏  举报