32 references to Unquote
Microsoft.Build.CommandLine.UnitTests (29)
XMake_Tests.cs (29)
385
QuotingUtilities.
Unquote
("abc\"cde\"xyz", out var doubleQuotesRemoved).ShouldBe("abccdexyz");
389
QuotingUtilities.
Unquote
("abc\"xyz", out doubleQuotesRemoved).ShouldBe("abcxyz");
393
QuotingUtilities.
Unquote
("abc\"xyz\"", out doubleQuotesRemoved).ShouldBe("abcxyz");
397
QuotingUtilities.
Unquote
("abc\\\"cde\"xyz", out doubleQuotesRemoved).ShouldBe("abc\"cdexyz");
401
QuotingUtilities.
Unquote
("abc\\\\\"cde\"xyz", out doubleQuotesRemoved).ShouldBe("abc\\cdexyz");
405
QuotingUtilities.
Unquote
("abc\\\\\\\"cde\"xyz", out doubleQuotesRemoved).ShouldBe("abc\\\"cdexyz");
409
QuotingUtilities.
Unquote
("abc\"\"\"xyz", out doubleQuotesRemoved).ShouldBe("abc\"xyz");
413
QuotingUtilities.
Unquote
("abc\"\"\"\"xyz", out doubleQuotesRemoved).ShouldBe("abc\"xyz");
417
QuotingUtilities.
Unquote
("abc\"\"\"\"\"xyz", out doubleQuotesRemoved).ShouldBe("abc\"xyz");
421
QuotingUtilities.
Unquote
("abc\"\"\"\"\"\"xyz", out doubleQuotesRemoved).ShouldBe("abc\"\"xyz");
425
QuotingUtilities.
Unquote
("abc\"cde\"\"xyz", out doubleQuotesRemoved).ShouldBe("abccde\"xyz");
429
QuotingUtilities.
Unquote
("abc\"xyz\"\"", out doubleQuotesRemoved).ShouldBe("abcxyz\"");
433
QuotingUtilities.
Unquote
("abc\"\"xyz", out doubleQuotesRemoved).ShouldBe("abcxyz");
437
QuotingUtilities.
Unquote
("abc\"\"cde\"\"xyz", out doubleQuotesRemoved).ShouldBe("abccdexyz");
445
string unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out var doubleQuotesRemovedFromArg);
450
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
455
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
460
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
467
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
472
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
477
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
482
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
491
var unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out var doubleQuotesRemovedFromArg);
496
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
501
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
506
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
511
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
516
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
521
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
MSBuild (3)
CommandLine\CommandLineParser.cs (2)
233
string unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out var doubleQuotesRemovedFromArg);
598
string unquotedSwitchIndicatorAndName = QuotingUtilities.
Unquote
(commandLineArg.Substring(0, quotedSwitchParameterIndicator), out var doubleQuotesRemovedFromSwitchIndicatorAndName);
QuotingUtilities.cs (1)
234
return
Unquote
(input, out doubleQuotesRemoved);