Lines Matching refs:unescapeJsonCommandLine
340 static std::vector<std::string> unescapeJsonCommandLine(StringRef Command) { in unescapeJsonCommandLine() function
351 TEST(unescapeJsonCommandLine, ReturnsEmptyArrayOnEmptyString) { in TEST() argument
352 std::vector<std::string> Result = unescapeJsonCommandLine(""); in TEST()
356 TEST(unescapeJsonCommandLine, SplitsOnSpaces) { in TEST() argument
357 std::vector<std::string> Result = unescapeJsonCommandLine("a b c"); in TEST()
364 TEST(unescapeJsonCommandLine, MungesMultipleSpaces) { in TEST() argument
365 std::vector<std::string> Result = unescapeJsonCommandLine(" a b "); in TEST()
371 TEST(unescapeJsonCommandLine, UnescapesBackslashCharacters) { in TEST() argument
372 std::vector<std::string> Backslash = unescapeJsonCommandLine("a\\\\\\\\"); in TEST()
375 std::vector<std::string> Quote = unescapeJsonCommandLine("a\\\\\\\""); in TEST()
380 TEST(unescapeJsonCommandLine, DoesNotMungeSpacesBetweenQuotes) { in TEST() argument
381 std::vector<std::string> Result = unescapeJsonCommandLine("\\\" a b \\\""); in TEST()
386 TEST(unescapeJsonCommandLine, AllowsMultipleQuotedArguments) { in TEST() argument
387 std::vector<std::string> Result = unescapeJsonCommandLine( in TEST()
394 TEST(unescapeJsonCommandLine, AllowsEmptyArgumentsInQuotes) { in TEST() argument
395 std::vector<std::string> Result = unescapeJsonCommandLine( in TEST()
401 TEST(unescapeJsonCommandLine, ParsesEscapedQuotesInQuotedStrings) { in TEST() argument
402 std::vector<std::string> Result = unescapeJsonCommandLine( in TEST()
408 TEST(unescapeJsonCommandLine, ParsesMultipleArgumentsWithEscapedCharacters) { in TEST() argument
409 std::vector<std::string> Result = unescapeJsonCommandLine( in TEST()
418 TEST(unescapeJsonCommandLine, ParsesStringsWithoutSpacesIntoSingleArgument) { in TEST() argument
419 std::vector<std::string> QuotedNoSpaces = unescapeJsonCommandLine( in TEST()
424 std::vector<std::string> MixedNoSpaces = unescapeJsonCommandLine( in TEST()
430 TEST(unescapeJsonCommandLine, ParsesQuotedStringWithoutClosingQuote) { in TEST() argument
431 std::vector<std::string> Unclosed = unescapeJsonCommandLine("\\\"abc"); in TEST()
435 std::vector<std::string> Empty = unescapeJsonCommandLine("\\\""); in TEST()
440 TEST(unescapeJsonCommandLine, ParsesSingleQuotedString) { in TEST() argument
441 std::vector<std::string> Args = unescapeJsonCommandLine("a'\\\\b \\\"c\\\"'"); in TEST()