Esempio n. 1
0
 /// <summary>
 /// 用指定名称的脏话管理器来过滤脏字
 /// </summary>
 /// <param name="name">脏话管理器名</param>
 /// <param name="data">要过滤的字符串</param>
 /// <returns>返回过滤后的字符串</returns>
 public static string FilterDirtyWord(EnumDirtyWordsName name, string data)
 {
     return(FilterDirtyWord(name.ToString(), data));
 }
Esempio n. 2
0
 /// <summary>
 /// 用指定名称的脏话管理器来检查字符串中是否有脏字
 /// </summary>
 /// <param name="name">脏话管理器名</param>
 /// <param name="data">要检查的字符串</param>
 /// <returns>返回值 true有脏字,false没有脏字</returns>
 public static bool CheckDirtyWord(EnumDirtyWordsName name, string data, bool checksymbol)
 {
     return(CheckDirtyWord(name.ToString(), data, checksymbol));
 }