예제 #1
0
        private Mime()
        {
#if NET_2_0
            Aliases             = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase);
            SubClasses          = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase);
            GlobalPatternsShort = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase);
            GlobalPatternsLong  = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase);
            GlobalLiterals      = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase);
            GlobalSufPref       = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase);
#else
            Aliases             = new NameValueCollection(new CaseInsensitiveHashCodeProvider(), new Comparer(System.Globalization.CultureInfo.CurrentUICulture));
            SubClasses          = new NameValueCollection(new CaseInsensitiveHashCodeProvider(), new Comparer(System.Globalization.CultureInfo.CurrentUICulture));
            GlobalPatternsShort = new NameValueCollection(new CaseInsensitiveHashCodeProvider(), new Comparer(System.Globalization.CultureInfo.CurrentUICulture));
            GlobalPatternsLong  = new NameValueCollection(new CaseInsensitiveHashCodeProvider(), new Comparer(System.Globalization.CultureInfo.CurrentUICulture));
            GlobalLiterals      = new NameValueCollection(new CaseInsensitiveHashCodeProvider(), new Comparer(System.Globalization.CultureInfo.CurrentUICulture));
            GlobalSufPref       = new NameValueCollection(new CaseInsensitiveHashCodeProvider(), new Comparer(System.Globalization.CultureInfo.CurrentUICulture));
#endif

            Matches80Plus  = new ArrayList();
            MatchesBelow80 = new ArrayList();

            FDOMimeConfigReader fmcr = new FDOMimeConfigReader();
            int buffer_length        = fmcr.Init();

            if (buffer_length >= 32)
            {
                buffer         = new byte [buffer_length];
                mime_available = true;
            }
        }
예제 #2
0
파일: Mime.cs 프로젝트: ischyrus/mono
        private Mime()
        {
            Aliases             = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase);
            SubClasses          = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase);
            GlobalPatternsShort = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase);
            GlobalPatternsLong  = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase);
            GlobalLiterals      = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase);
            GlobalSufPref       = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase);

            Matches80Plus  = new ArrayList();
            MatchesBelow80 = new ArrayList();

            FDOMimeConfigReader fmcr = new FDOMimeConfigReader();
            int buffer_length        = fmcr.Init();

            if (buffer_length >= 32)
            {
                buffer         = new byte [buffer_length];
                mime_available = true;
            }
        }
예제 #3
0
파일: Mime.cs 프로젝트: nekresh/mono
		private Mime ()
		{
			Aliases = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase);
			SubClasses = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase);
			GlobalPatternsShort = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase);
			GlobalPatternsLong = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase);
			GlobalLiterals = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase);
			GlobalSufPref = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase);
			
			Matches80Plus = new ArrayList ();
			MatchesBelow80 = new ArrayList ();
			
			FDOMimeConfigReader fmcr = new FDOMimeConfigReader ();
			int buffer_length = fmcr.Init ();
			
			if (buffer_length >= 32) {
				buffer = new byte [buffer_length];
				mime_available = true;
			}
		}
예제 #4
0
파일: Mime.cs 프로젝트: wamiq/debian-mono
		private Mime ()
		{
#if NET_2_0
			Aliases = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase);
			SubClasses = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase);
			GlobalPatternsShort = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase);
			GlobalPatternsLong = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase);
			GlobalLiterals = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase);
			GlobalSufPref = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase);
#else
			Aliases = new NameValueCollection (new CaseInsensitiveHashCodeProvider (), new Comparer (System.Globalization.CultureInfo.CurrentUICulture));
			SubClasses = new NameValueCollection (new CaseInsensitiveHashCodeProvider (), new Comparer (System.Globalization.CultureInfo.CurrentUICulture));
			GlobalPatternsShort = new NameValueCollection (new CaseInsensitiveHashCodeProvider (), new Comparer (System.Globalization.CultureInfo.CurrentUICulture));
			GlobalPatternsLong = new NameValueCollection (new CaseInsensitiveHashCodeProvider (), new Comparer (System.Globalization.CultureInfo.CurrentUICulture));
			GlobalLiterals = new NameValueCollection (new CaseInsensitiveHashCodeProvider (), new Comparer (System.Globalization.CultureInfo.CurrentUICulture));
			GlobalSufPref = new NameValueCollection (new CaseInsensitiveHashCodeProvider (), new Comparer (System.Globalization.CultureInfo.CurrentUICulture));
#endif
			
			Matches80Plus = new ArrayList ();
			MatchesBelow80 = new ArrayList ();
			
			FDOMimeConfigReader fmcr = new FDOMimeConfigReader ();
			int buffer_length = fmcr.Init ();
			
			if (buffer_length >= 32) {
				buffer = new byte [buffer_length];
				mime_available = true;
			}
		}