亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? namefilter.cs

?? C#開發的QQ,希望大家喜歡.獻給大家作參考
?? CS
字號:
// NameFilter.cs
//
// Copyright 2005 John Reilly
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
// Linking this library statically or dynamically with other modules is
// making a combined work based on this library.  Thus, the terms and
// conditions of the GNU General Public License cover the whole
// combination.
// 
// As a special exception, the copyright holders of this library give you
// permission to link this library with independent modules to produce an
// executable, regardless of the license terms of these independent
// modules, and to copy and distribute the resulting executable under
// terms of your choice, provided that you also meet, for each linked
// independent module, the terms and conditions of the license of that
// module.  An independent module is a module which is not derived from
// or based on this library.  If you modify this library, you may extend
// this exception to your version of the library, but you are not
// obligated to do so.  If you do not wish to do so, delete this
// exception statement from your version.


using System;
using System.Collections;
using System.Text.RegularExpressions;

namespace ICSharpCode.SharpZipLib.Core
{
	/// <summary>
	/// NameFilter is a string matching class which allows for both positive and negative
	/// matching.
	/// A filter is a sequence of independant <see cref="Regex"></see> regular expressions separated by semi-colons ';'
	/// Each expression can be prefixed by a plus '+' sign or a minus '-' sign to denote the expression
	/// is intended to include or exclude names.  If neither a plus or minus sign is found include is the default
	/// A given name is tested for inclusion before checking exclusions.  Only names matching an include spec 
	/// and not matching an exclude spec are deemed to match the filter.
	/// An empty filter matches any name.
	/// </summary>
	public class NameFilter
	{
		/// <summary>
		/// Construct an instance based on the filter expression passed
		/// </summary>
		/// <param name="filter">The filter expression.</param>
		public NameFilter(string filter)
		{
			this.filter = filter;
			inclusions = new ArrayList();
			exclusions = new ArrayList();
			Compile();
		}

		/// <summary>
		/// Test a string to see if it is a valid regular expression.
		/// </summary>
		/// <param name="e">The expression to test.</param>
		/// <returns>True if expression is a valid <see cref="System.Text.RegularExpressions.Regex"/> false otherwise.</returns>
		public static bool IsValidExpression(string e)
		{
			bool result = true;
			try {
				Regex exp = new Regex(e, RegexOptions.IgnoreCase | RegexOptions.Singleline);
			}
			catch {
				result = false;
			}
			return result;
		}

		/// <summary>
		/// Test an expression to see if it is valid as a filter.
		/// </summary>
		/// <param name="toTest">The filter expression to test.</param>
		/// <returns>True if the expression is valid, false otherwise.</returns>
		public static bool IsValidFilterExpression(string toTest)
		{
			bool result = true;
		
			try
			{
				string[] items = toTest.Split(';');
				for (int i = 0; i < items.Length; ++i) {
					if (items[i] != null && items[i].Length > 0) {
						string toCompile;
			
						if (items[i][0] == '+')
							toCompile = items[i].Substring(1, items[i].Length - 1);
						else if (items[i][0] == '-')
							toCompile = items[i].Substring(1, items[i].Length - 1);
						else
							toCompile = items[i];
			
						Regex testRE = new Regex(toCompile, RegexOptions.IgnoreCase | RegexOptions.Singleline);
					}
				}
			}
			catch (Exception) {
				result = false;
		 	}
		
			return result;
		}

		/// <summary>
		/// Convert this filter to its string equivalent.
		/// </summary>
		/// <returns>The string equivalent for this filter.</returns>
		public override string ToString()
		{
			return filter;
		}
		
		/// <summary>
		/// Test a value to see if it is included by the filter.
		/// </summary>
		/// <param name="testValue">The value to test.</param>
		/// <returns>True if the value is included, false otherwise.</returns>
		public bool IsIncluded(string testValue)
		{
			bool result = false;
			if (inclusions.Count == 0)
				result = true;
			else {
				foreach (Regex r in inclusions) {
					if (r.IsMatch(testValue)) {
						result = true;
						break;
					}
				}
			}
			return result;
		}

		/// <summary>
		/// Test a value to see if it is excluded by the filter.
		/// </summary>
		/// <param name="testValue">The value to test.</param>
		/// <returns>True if the value is excluded, false otherwise.</returns>
		public bool IsExcluded(string testValue)
		{
			bool result = false;
			foreach (Regex r in exclusions) {
				if (r.IsMatch(testValue)) {
					result = true;
					break;
				}
			}
			return result;
		}

		/// <summary>
		/// Test a value to see if it matches the filter.
		/// </summary>
		/// <param name="testValue">The value to test.</param>
		/// <returns>True if the value matches, false otherwise.</returns>
		public bool IsMatch(string testValue)
		{
			return IsIncluded(testValue) == true && IsExcluded(testValue) == false;
		}

		/// <summary>
		/// Compile this filter.
		/// </summary>
		void Compile()
		{
			if (filter == null)
				return;

			string[] items = filter.Split(';');
			for (int i = 0; i < items.Length; ++i) {
				if (items[i] != null && items[i].Length > 0) {
					bool include = items[i][0] != '-';
					string toCompile;

					if (items[i][0] == '+')
						toCompile = items[i].Substring(1, items[i].Length - 1);
					else if (items[i][0] == '-')
						toCompile = items[i].Substring(1, items[i].Length - 1);
					else
						toCompile = items[i];

					// NOTE: Regular expressions can fail to compile here for a number of reasons that cause an exception
					// these are left unhandled here as the caller is responsible for ensuring all is valid.
					// several functions IsValidFilterExpression and IsValidExpression are provided for such checking
					if (include)
						inclusions.Add(new Regex(toCompile, RegexOptions.IgnoreCase | RegexOptions.Compiled | RegexOptions.Singleline));
					else
						exclusions.Add(new Regex(toCompile, RegexOptions.IgnoreCase | RegexOptions.Compiled | RegexOptions.Singleline));
				}
			}
		}

		#region Instance Fields
			string filter;
			ArrayList inclusions;
			ArrayList exclusions;
		#endregion
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品影视av免费| 91久久精品一区二区三区| 日本aⅴ精品一区二区三区| 伊人开心综合网| 亚洲激情校园春色| 亚洲激情自拍视频| 亚洲成年人网站在线观看| 亚洲国产精品一区二区久久恐怖片| 亚洲欧美一区二区在线观看| 国产精品传媒在线| 亚洲人妖av一区二区| 亚洲人成亚洲人成在线观看图片| 亚洲欧美日韩国产一区二区三区| 一区二区三区四区五区视频在线观看| 亚洲裸体在线观看| 亚洲午夜久久久久久久久电影院| 亚洲成人高清在线| 免费在线观看不卡| 国产一区二区三区在线看麻豆| 国产精品91xxx| 91网站最新网址| 欧洲精品在线观看| 欧美一区二区精美| 久久久91精品国产一区二区精品| 国产精品入口麻豆九色| 亚洲综合成人在线视频| 免费观看在线综合| 国产高清不卡一区| 欧美亚洲自拍偷拍| 日韩欧美一级在线播放| 国产欧美日产一区| 亚洲电影一级片| 精品夜夜嗨av一区二区三区| 99国产精品国产精品久久| 欧美日韩中文字幕一区| 精品久久久久久久一区二区蜜臀| 国产精品久久毛片a| 亚洲国产精品一区二区久久恐怖片| 六月婷婷色综合| www.日本不卡| 在线电影院国产精品| 国产欧美视频一区二区三区| 亚洲精品免费播放| 国内精品第一页| 色综合一区二区| 精品少妇一区二区三区在线视频| 国产精品白丝在线| 毛片一区二区三区| 99精品黄色片免费大全| 欧美v日韩v国产v| 亚洲免费看黄网站| 国模无码大尺度一区二区三区| 色偷偷成人一区二区三区91| 精品久久久久久无| 亚洲午夜精品久久久久久久久| 久国产精品韩国三级视频| 色综合天天天天做夜夜夜夜做| 精品精品欲导航| 伊人一区二区三区| 国产91精品在线观看| 制服.丝袜.亚洲.另类.中文| 国产精品乱人伦中文| 蜜桃久久精品一区二区| 91精品福利视频| 日本一区二区三区视频视频| 日韩二区在线观看| 色诱视频网站一区| 国产亚洲综合性久久久影院| 亚洲国产成人91porn| 暴力调教一区二区三区| 日韩欧美国产综合| 午夜一区二区三区视频| 99九九99九九九视频精品| 久久先锋影音av鲁色资源网| 美女爽到高潮91| 欧美日韩精品欧美日韩精品一综合| 国产精品白丝在线| 国产iv一区二区三区| 日韩精品一区二区三区视频在线观看| 亚洲一区二区av在线| 一本大道久久a久久综合| 国产日产欧美精品一区二区三区| 久久精品99国产精品日本| 欧美日韩精品一区二区天天拍小说 | 亚洲图片欧美激情| 国产91精品一区二区| 久久久美女毛片| 麻豆91精品91久久久的内涵| 欧美日韩一级大片网址| 一区二区三区在线观看动漫 | 欧美手机在线视频| 亚洲一区二区欧美激情| 色噜噜久久综合| 成人免费在线播放视频| av男人天堂一区| 国产精品久久久久毛片软件| 国产福利一区在线| 欧美精彩视频一区二区三区| 国产麻豆精品一区二区| 久久久精品影视| 国产寡妇亲子伦一区二区| 久久久91精品国产一区二区三区| 国产一区二区三区免费看| 精品国产3级a| 国内精品伊人久久久久影院对白| 精品国产一区二区三区久久影院| 美女诱惑一区二区| 亚洲精品一区二区在线观看| 国产一区二区三区观看| 国产三级三级三级精品8ⅰ区| 国产馆精品极品| 国产精品成人免费在线| 日本道免费精品一区二区三区| 亚洲欧美激情在线| 欧美午夜电影网| 日本成人在线一区| 精品国产免费一区二区三区四区 | 欧美肥胖老妇做爰| 美女看a上一区| 久久这里只精品最新地址| 国产999精品久久久久久| 中文字幕一区二区三中文字幕| 91尤物视频在线观看| 亚洲自拍欧美精品| 日韩视频在线你懂得| 国模套图日韩精品一区二区| 欧美国产精品一区二区三区| 色域天天综合网| 日本网站在线观看一区二区三区| 精品久久久久久无| 成人黄色a**站在线观看| 亚洲永久精品大片| 欧美成人一级视频| 成人综合日日夜夜| 亚洲一二三区在线观看| 日韩欧美成人午夜| 成人免费毛片嘿嘿连载视频| 亚洲一区二区五区| 26uuu色噜噜精品一区| 91伊人久久大香线蕉| 日韩av午夜在线观看| 亚洲国产精华液网站w | 亚洲乱码一区二区三区在线观看| 欧美艳星brazzers| 国产一区二区三区视频在线播放| 亚洲三级电影全部在线观看高清| 欧美高清精品3d| 国产精品一品二品| 亚洲国产精品久久久久婷婷884| 欧美mv和日韩mv的网站| 色哟哟一区二区在线观看 | 欧美在线999| 精品一区二区三区不卡| 中文字幕在线观看一区二区| 日韩一区二区电影网| 成人av在线资源| 免费在线观看视频一区| 18成人在线观看| 欧美va日韩va| 欧洲激情一区二区| 高潮精品一区videoshd| 日韩电影在线一区二区三区| 亚洲人成网站在线| 久久中文字幕电影| 这里只有精品99re| 91麻豆国产香蕉久久精品| 久久99久久99小草精品免视看| 亚洲精品中文在线| 国产日韩成人精品| 日韩视频123| 欧美视频第二页| 成人三级伦理片| 国产真实乱子伦精品视频| 夜夜亚洲天天久久| 国产精品入口麻豆九色| 2024国产精品| 欧美日韩成人综合在线一区二区| 成人av电影在线| 国产一区二区三区日韩| 日韩在线卡一卡二| 亚洲综合在线视频| 国产精品美女久久久久久2018 | 亚洲一区二区三区激情| 国产精品萝li| 国产日韩欧美精品一区| 精品卡一卡二卡三卡四在线| 制服丝袜av成人在线看| 精品污污网站免费看| 色综合激情五月| 99久久99久久久精品齐齐| 大胆欧美人体老妇| 国产69精品久久777的优势| 久久电影网站中文字幕| 免费xxxx性欧美18vr| 视频一区免费在线观看| 亚洲不卡av一区二区三区| 亚洲国产sm捆绑调教视频| 亚洲国产精品一区二区www| 一区二区三区日韩| 一区二区三区国产|