﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-xingd.net-最新评论</title><link>http://www.cnblogs.com/xingd/CommentsRSS.aspx</link><description>.net related techonology</description><language>zh-cn</language><pubDate>Sat, 22 Mar 2008 07:56:23 GMT</pubDate><lastBuildDate>Sat, 22 Mar 2008 07:56:23 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: 忽略大小写的.NET脏字过滤算法</title><link>http://www.cnblogs.com/xingd/archive/2008/05/05/1064549.html#1184208</link><dc:creator>黑鹰</dc:creator><author>黑鹰</author><pubDate>Mon, 05 May 2008 15:28:00 GMT</pubDate><guid>http://www.cnblogs.com/xingd/archive/2008/05/05/1064549.html#1184208</guid><description><![CDATA[博主可否给我发一份2.0的，多谢hiying#163.com<br><br><div align=right><a style="text-decoration:none;" href="http://xingd.cnblogs.com/" target="_blank">黑鹰</a> 2008-05-05 23:28 <a href="http://www.cnblogs.com/xingd/archive/2008/05/05/1064549.html#1184208#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title> 休学、退学与学习</title><link>http://www.cnblogs.com/xingd/archive/2008/05/02/98128.html#1179550</link><dc:creator>蒋振凯</dc:creator><author>蒋振凯</author><pubDate>Fri, 02 May 2008 07:24:00 GMT</pubDate><guid>http://www.cnblogs.com/xingd/archive/2008/05/02/98128.html#1179550</guid><description><![CDATA[今天来查查有关休学的，却到了你这，和大多数大学生一样，我开始对自己的将来感到迷茫！对于自己的将来与理想我不知如何是好！已进入大学发现并不是那么的理想，所以一直都是自学，但是发现实在是太累！在想了很久之后我决定要退学！找专业的学校去学习！其实这其中也有家庭经济方面的原因，我想我实在是没有那个时间，在上完大专之后再去学习，承受不起！于是跟家里人商量了一下，家人先让我办个休学，发现现在休学还挺难办理的!<br>知道怎么弄得麻烦指点一下！<br>QQ：405520878<br><br><div align=right><a style="text-decoration:none;" href="http://xingd.cnblogs.com/" target="_blank">蒋振凯</a> 2008-05-02 15:24 <a href="http://www.cnblogs.com/xingd/archive/2008/05/02/98128.html#1179550#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 忽略大小写的.NET脏字过滤算法</title><link>http://www.cnblogs.com/xingd/archive/2008/04/10/1064549.html#1147451</link><dc:creator>fqf</dc:creator><author>fqf</author><pubDate>Thu, 10 Apr 2008 13:28:00 GMT</pubDate><guid>http://www.cnblogs.com/xingd/archive/2008/04/10/1064549.html#1147451</guid><description><![CDATA[终于学会使用了 运行成功 非常感谢博主！！<br><br><br><br><div align=right><a style="text-decoration:none;" href="http://xingd.cnblogs.com/" target="_blank">fqf</a> 2008-04-10 21:28 <a href="http://www.cnblogs.com/xingd/archive/2008/04/10/1064549.html#1147451#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 忽略大小写的.NET脏字过滤算法</title><link>http://www.cnblogs.com/xingd/archive/2008/04/10/1064549.html#1147447</link><dc:creator>fqf</dc:creator><author>fqf</author><pubDate>Thu, 10 Apr 2008 13:21:00 GMT</pubDate><guid>http://www.cnblogs.com/xingd/archive/2008/04/10/1064549.html#1147447</guid><description><![CDATA[非常谢谢 已收到<br><br><div align=right><a style="text-decoration:none;" href="http://xingd.cnblogs.com/" target="_blank">fqf</a> 2008-04-10 21:21 <a href="http://www.cnblogs.com/xingd/archive/2008/04/10/1064549.html#1147447#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 忽略大小写的.NET脏字过滤算法</title><link>http://www.cnblogs.com/xingd/archive/2008/04/10/1064549.html#1146889</link><dc:creator>xingd</dc:creator><author>xingd</author><pubDate>Thu, 10 Apr 2008 07:22:00 GMT</pubDate><guid>http://www.cnblogs.com/xingd/archive/2008/04/10/1064549.html#1146889</guid><description><![CDATA[@fqf<br>GetHashCode的代码已发到你的邮箱<br><br><div align=right><a style="text-decoration:none;" href="http://xingd.cnblogs.com/" target="_blank">xingd</a> 2008-04-10 15:22 <a href="http://www.cnblogs.com/xingd/archive/2008/04/10/1064549.html#1146889#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 忽略大小写的.NET脏字过滤算法</title><link>http://www.cnblogs.com/xingd/archive/2008/04/10/1064549.html#1146761</link><dc:creator>fqf</dc:creator><author>fqf</author><pubDate>Thu, 10 Apr 2008 06:29:00 GMT</pubDate><guid>http://www.cnblogs.com/xingd/archive/2008/04/10/1064549.html#1146761</guid><description><![CDATA[谢谢博主的回答。<br><br>我的是2.0的 所以将原来地方修改了3处：<br>1；<br>private Dictionary&lt;string, object&gt; hash = new Dictionary&lt;string, object&gt;();<br><br>2；<br> else<br>            {<br>                fastLength[word[0]] |= (byte)(1 &lt;&lt; (Math.Min(7, word.Length - 2)));<br>                endCheck[word[word.Length - 1]] = true;<br>                hash.Add(word, null);<br>                //hash.Add(word);<br>            }<br><br>3；<br>if (hash.ContainsKey(sub))<br>                        //if (hash.Contains(sub))<br>                        {<br>                            return true;<br>                        }<br><br><br>不知道这样是否正确，谢谢！<br><br><br>另外，能否麻烦也贴出这个部分内部代码分享一下呢？谢谢。<br><br> public override int GetHashCode()<br>    {<br>        // call char.tolower and calculate hash code<br>    }<br><br>－－－－－－－－－－－－－－－－－－－－－－－－<br>实话，我以前是做java的，现在为了做自己一个网站，考虑服务空间问题，决定学.net来开发，一边学一边用。现在网站对屏蔽敏感词非常必要，而有目的的搜索到你这篇关于高效率过滤的技术文章，内心真的很想一下子能学到并应用进去。可惜自己刚刚接触，无法一时理解大师级的编程精髓，所以，如果博主乐意的话，希望能得到更多的帮助，谢谢！ 个人邮箱为 mail@fqf.cn<br><br><div align=right><a style="text-decoration:none;" href="http://xingd.cnblogs.com/" target="_blank">fqf</a> 2008-04-10 14:29 <a href="http://www.cnblogs.com/xingd/archive/2008/04/10/1064549.html#1146761#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 忽略大小写的.NET脏字过滤算法</title><link>http://www.cnblogs.com/xingd/archive/2008/04/10/1064549.html#1146367</link><dc:creator>xingd</dc:creator><author>xingd</author><pubDate>Thu, 10 Apr 2008 02:51:00 GMT</pubDate><guid>http://www.cnblogs.com/xingd/archive/2008/04/10/1064549.html#1146367</guid><description><![CDATA[@fqf<br>HashSet是.NET 3.5中新增的，如果使用.NET 2.0，可以用Dictionary&lt;string, object&gt;代替。<br><br><div align=right><a style="text-decoration:none;" href="http://xingd.cnblogs.com/" target="_blank">xingd</a> 2008-04-10 10:51 <a href="http://www.cnblogs.com/xingd/archive/2008/04/10/1064549.html#1146367#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 忽略大小写的.NET脏字过滤算法</title><link>http://www.cnblogs.com/xingd/archive/2008/04/10/1064549.html#1146306</link><dc:creator>fqf</dc:creator><author>fqf</author><pubDate>Thu, 10 Apr 2008 02:25:00 GMT</pubDate><guid>http://www.cnblogs.com/xingd/archive/2008/04/10/1064549.html#1146306</guid><description><![CDATA[初学者请教一个问题。我学习了你分享的这几篇好文，也尝试自己组合弄弄，便宜过程中发现一个错误一直想不到解决办法：<br>＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃<br><br>编译器错误信息: CS0246: 找不到类型或命名空间名称“HashSet”(是否缺少 using 指令或程序集引用?)<br><br>源错误:<br><br> <br><br>行 17: public class ClearBadword<br>行 18: {<br>行 19:     private HashSet&lt;string&gt; hash = new HashSet&lt;string&gt;();<br>行 20:     private byte[] fastCheck = new byte[char.MaxValue];<br>行 21:     private byte[] fastLength = new byte[char.MaxValue];<br> <br><br><br>＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃<br><br><br>我的代码前面部分是这样写的：<br>using System;<br>using System.Data;<br>using System.Configuration;<br>using System.Web;<br>using System.Web.Security;<br>using System.Web.UI;<br>using System.Web.UI.WebControls;<br>using System.Web.UI.WebControls.WebParts;<br>using System.Web.UI.HtmlControls;<br>using System.Collections;<br>using System.Collections.Generic;<br>using System.Text;<br>using System.Runtime.InteropServices; <br>/// &lt;summary&gt;<br>/// ClearBadword 的摘要说明<br>/// &lt;/summary&gt;<br>public class ClearBadword<br>{<br>    private HashSet&lt;string&gt; hash = new HashSet&lt;string&gt;();<br>    private byte[] fastCheck = new byte[char.MaxValue];<br>    private byte[] fastLength = new byte[char.MaxValue];<br>    private BitArray charCheck = new BitArray(char.MaxValue);<br>    private BitArray endCheck = new BitArray(char.MaxValue);<br>    private int maxWordLength = 0;<br>    private int minWordLength = int.MaxValue;<br><br><br><br>＝＝＝＝＝＝＝＝<br>请指教 谢谢<br><br><div align=right><a style="text-decoration:none;" href="http://xingd.cnblogs.com/" target="_blank">fqf</a> 2008-04-10 10:25 <a href="http://www.cnblogs.com/xingd/archive/2008/04/10/1064549.html#1146306#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 2007年度总结</title><link>http://www.cnblogs.com/xingd/archive/2008/03/31/1063575.html#1130470</link><dc:creator>xingd</dc:creator><author>xingd</author><pubDate>Sun, 30 Mar 2008 18:40:00 GMT</pubDate><guid>http://www.cnblogs.com/xingd/archive/2008/03/31/1063575.html#1130470</guid><description><![CDATA[@把大海藏到心里<br>在校阶段多了解一些也挺不错的。<br><br><div align=right><a style="text-decoration:none;" href="http://xingd.cnblogs.com/" target="_blank">xingd</a> 2008-03-31 02:40 <a href="http://www.cnblogs.com/xingd/archive/2008/03/31/1063575.html#1130470#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 2007年度总结</title><link>http://www.cnblogs.com/xingd/archive/2008/03/30/1063575.html#1130355</link><dc:creator>把大海藏到心里</dc:creator><author>把大海藏到心里</author><pubDate>Sun, 30 Mar 2008 15:18:00 GMT</pubDate><guid>http://www.cnblogs.com/xingd/archive/2008/03/30/1063575.html#1130355</guid><description><![CDATA[我还是个学生，但是我什么都了解一点 ，但是深度不够 !<br><br>看了你的经历，真是羡慕啊 ！<br><br>你肯定是学习能力很强的那种吧 ！<br><br><br><br><div align=right><a style="text-decoration:none;" href="http://xingd.cnblogs.com/" target="_blank">把大海藏到心里</a> 2008-03-30 23:18 <a href="http://www.cnblogs.com/xingd/archive/2008/03/30/1063575.html#1130355#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>