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;
            }
        }
Example #2
0
        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;
            }
        }
Example #3
0
File: Mime.cs Project: 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;
			}
		}
Example #4
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;
			}
		}