Exemplo n.º 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;
            }
        }
Exemplo n.º 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;
            }
        }
Exemplo n.º 3
0
Arquivo: Mime.cs Projeto: 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;
			}
		}
Exemplo n.º 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;
			}
		}