/// <summary> /// Parse a line with space separators. /// </summary> /// <param name="line">The line to parse.</param> /// <returns>The list of items from the line.</returns> private static List<String> ParseSpaceSep(String line) { var result = new List<String>(); var parse = new SimpleParser(line); while (!parse.EOL()) { result.Add(parse.Peek() == '\"' ? parse.ReadQuotedString() : parse.ReadToWhiteSpace()); parse.EatWhiteSpace(); } return result; }
/// <summary> /// Parse a line with space separators. /// </summary> /// <param name="line">The line to parse.</param> /// <returns>The list of items from the line.</returns> private static List <String> ParseSpaceSep(String line) { var result = new List <String>(); var parse = new SimpleParser(line); while (!parse.EOL()) { result.Add(parse.Peek() == '\"' ? parse.ReadQuotedString() : parse.ReadToWhiteSpace()); parse.EatWhiteSpace(); } return(result); }