32 references to Unquote
Microsoft.Build.CommandLine.UnitTests (29)
XMake_Tests.cs (29)
383
QuotingUtilities.
Unquote
("abc\"cde\"xyz", out var doubleQuotesRemoved).ShouldBe("abccdexyz");
387
QuotingUtilities.
Unquote
("abc\"xyz", out doubleQuotesRemoved).ShouldBe("abcxyz");
391
QuotingUtilities.
Unquote
("abc\"xyz\"", out doubleQuotesRemoved).ShouldBe("abcxyz");
395
QuotingUtilities.
Unquote
("abc\\\"cde\"xyz", out doubleQuotesRemoved).ShouldBe("abc\"cdexyz");
399
QuotingUtilities.
Unquote
("abc\\\\\"cde\"xyz", out doubleQuotesRemoved).ShouldBe("abc\\cdexyz");
403
QuotingUtilities.
Unquote
("abc\\\\\\\"cde\"xyz", out doubleQuotesRemoved).ShouldBe("abc\\\"cdexyz");
407
QuotingUtilities.
Unquote
("abc\"\"\"xyz", out doubleQuotesRemoved).ShouldBe("abc\"xyz");
411
QuotingUtilities.
Unquote
("abc\"\"\"\"xyz", out doubleQuotesRemoved).ShouldBe("abc\"xyz");
415
QuotingUtilities.
Unquote
("abc\"\"\"\"\"xyz", out doubleQuotesRemoved).ShouldBe("abc\"xyz");
419
QuotingUtilities.
Unquote
("abc\"\"\"\"\"\"xyz", out doubleQuotesRemoved).ShouldBe("abc\"\"xyz");
423
QuotingUtilities.
Unquote
("abc\"cde\"\"xyz", out doubleQuotesRemoved).ShouldBe("abccde\"xyz");
427
QuotingUtilities.
Unquote
("abc\"xyz\"\"", out doubleQuotesRemoved).ShouldBe("abcxyz\"");
431
QuotingUtilities.
Unquote
("abc\"\"xyz", out doubleQuotesRemoved).ShouldBe("abcxyz");
435
QuotingUtilities.
Unquote
("abc\"\"cde\"\"xyz", out doubleQuotesRemoved).ShouldBe("abccdexyz");
443
string unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out var doubleQuotesRemovedFromArg);
448
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
453
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
458
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
465
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
470
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
475
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
480
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
489
var unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out var doubleQuotesRemovedFromArg);
494
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
499
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
504
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
509
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
514
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
519
unquotedCommandLineArg = QuotingUtilities.
Unquote
(commandLineArg, out doubleQuotesRemovedFromArg);
Microsoft.Build.Framework (1)
Utilities\QuotingUtilities.cs (1)
234
return
Unquote
(input, out doubleQuotesRemoved);
MSBuild (2)
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);