コード例 #1
0
        private bool ProcessHeader(string currentline)
        {
            int i = currentline.IndexOfAny(wspaces);

            if (i > 0)
            {
                string hname  = currentline.Substring(1, i - 1);
                string hvalue = currentline.Substring(i + 1);
                header h      = new header();
                h.hname  = hname;
                h.hvalue = hvalue;
                headers.Add(h);
                return(true);
            }
            return(false);
        }
コード例 #2
0
 private bool ProcessHeader(string currentline)
 {
     int i = currentline.IndexOfAny(wspaces);
     if (i > 0)
     {
         string hname = currentline.Substring(1, i - 1);
         string hvalue = currentline.Substring(i+1);
         header h = new header();
         h.hname = hname;
         h.hvalue = hvalue;
         headers.Add(h);
         return true;
     }
     return false;
 }