6 references to GetLengthOfSwitchIndicator
Microsoft.Build.CommandLine.UnitTests (4)
XMake_Tests.cs (4)
535CommandLineParser.GetLengthOfSwitchIndicator(commandLineSwitchWithSlash).ShouldBe(1); 536CommandLineParser.GetLengthOfSwitchIndicator(commandLineSwitchWithSingleDash).ShouldBe(1); 537CommandLineParser.GetLengthOfSwitchIndicator(commandLineSwitchWithDoubleDash).ShouldBe(2); 539CommandLineParser.GetLengthOfSwitchIndicator(commandLineSwitchWithNoneOrIncorrectIndicator).ShouldBe(0);
MSBuild (2)
CommandLine\CommandLineParser.cs (2)
205ReadOnlySpan<char> switchPart = arg.AsSpan(GetLengthOfSwitchIndicator(arg)); 260int switchIndicatorsLength = GetLengthOfSwitchIndicator(unquotedCommandLineArg);