예제 #1
0
 public virtual void Parse(ref IList<RFC822.Field> fields, ref string fieldString)
 {
     MatchCollection matches = m_FieldPattern.RegularExpression.Matches(fieldString);
     foreach (Match m in matches)
     {
         RFC822.Field f = new RFC822.Field();
         Match tmp = m_HeaderNamePattern.RegularExpression.Match(m.Value);
         f.Name = tmp.Value;
         tmp = m_HeaderBodyPattern.RegularExpression.Match(m.Value);
         f.Body = tmp.Value;
         fields.Add(f);
     }
 }
예제 #2
0
        public virtual void Parse(ref IList <RFC822.Field> fields, ref string fieldString)
        {
            MatchCollection matches = m_FieldPattern.RegularExpression.Matches(fieldString);

            foreach (Match m in matches)
            {
                RFC822.Field f   = new RFC822.Field();
                Match        tmp = m_HeaderNamePattern.RegularExpression.Match(m.Value);
                f.Name = tmp.Value;
                tmp    = m_HeaderBodyPattern.RegularExpression.Match(m.Value);
                f.Body = tmp.Value;
                fields.Add(f);
            }
        }