private static IList <string> getTokens(string line) { IList <string> tokens = CCommandTokenizer.Tokenize(line, CCommandTokenizer.OPTION_IGNORE_MISSING_QUOTES); if (tokens.Count > 0 && line.EndsWith(" ")) { tokens.Add(""); // treat last space as "empty" token } return(tokens); }
public static void TestAutoCompleteTokenSingleWordWithSpaceAtTheEnd() { Assert.AreEqual("", CCommandTokenizer.GetAutoCompleteToken("test ")); }
public static void TestAutoCompleteTokenEmpty() { Assert.AreEqual("", CCommandTokenizer.GetAutoCompleteToken("")); }
private static IList <string> Tokenize(string str) { return(CCommandTokenizer.Tokenize(str)); }
private static string GetToken(string line) { return(CCommandTokenizer.GetAutoCompleteToken(line)); }