过滤检测文本类容

it2022-05-09  58

    bool check(string content, ArrayList str)    {        for (int i = 0; i < str.Count; i++)        {            if (content.LastIndexOf(str[i].ToString()) != -1)            {                return true;            }            else                return false;        }    }

content为原文本

str为需要过滤的集合

转载于:https://www.cnblogs.com/wanheng/archive/2012/01/11/2319200.html

相关资源:数据结构—成绩单生成器

最新回复(0)