コード例 #1
0
ファイル: FieldParser.cs プロジェクト: smithimage/MIMER
 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
ファイル: FieldParser.cs プロジェクト: tablesmit/MIMER
        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);
            }
        }