public static IEnumerable<string> GetCommaSeparatedHeaderValues(this IEnumerable<string> enumerable) { foreach (var content in enumerable) { var searchString = content.Trim(); if (searchString.Length == 0) break; var parser = new CommaTokenParser(); content.ToCharArray().Each(parser.Read); // Gotta force the parser to know it's done parser.Read(','); foreach (var token in parser.Tokens) { yield return token.Trim(); } } }
public InsideQuotedToken(CommaTokenParser parent) { _parent = parent; }
public Searching(CommaTokenParser parent) { _parent = parent; }
public InsideNormalToken(CommaTokenParser parent) { _parent = parent; }
public InsideNormalToken(CommaTokenParser parent) { _parent = parent; }
public InsideQuotedToken(CommaTokenParser parent) { _parent = parent; }
public Searching(CommaTokenParser parent) { _parent = parent; }