示例#1
0
        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);
        }
示例#2
0
 public static void TestAutoCompleteTokenSingleWordWithSpaceAtTheEnd()
 {
     Assert.AreEqual("", CCommandTokenizer.GetAutoCompleteToken("test "));
 }
示例#3
0
 public static void TestAutoCompleteTokenEmpty()
 {
     Assert.AreEqual("", CCommandTokenizer.GetAutoCompleteToken(""));
 }
示例#4
0
 private static IList <string> Tokenize(string str)
 {
     return(CCommandTokenizer.Tokenize(str));
 }
 private static string GetToken(string line)
 {
     return(CCommandTokenizer.GetAutoCompleteToken(line));
 }