26 references to IndexOfAny
Microsoft.Build (10)
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (2)
1132ProjectErrorUtilities.VerifyThrowInvalidProject(input.AsSpan().IndexOfAny(MSBuildConstants.InvalidPathChars) < 0, _project.ProjectFileLocation, "IllegalCharactersInFileOrDirectory", input, inputItemName); 1133ProjectErrorUtilities.VerifyThrowInvalidProject(output.AsSpan().IndexOfAny(MSBuildConstants.InvalidPathChars) < 0, _project.ProjectFileLocation, "IllegalCharactersInFileOrDirectory", output, outputItemName);
BuildCheck\Checks\ExecCliBuildCheck.cs (1)
74var nextSeparatorIndex = commandSpan.Slice(start, commandSpan.Length - start).IndexOfAny(s_knownCommandSeparators);
Construction\ProjectTargetElement.cs (1)
109int indexOfSpecialCharacter = unescapedValue.AsSpan().IndexOfAny(XMakeElements.InvalidTargetNameCharacters);
Construction\Solution\ProjectInSolution.cs (1)
514int indexOfChar = projectName.AsSpan().IndexOfAny(s_charsToCleanse);
Construction\Solution\SolutionFile.cs (1)
1306ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(proj.RelativePath.AsSpan().IndexOfAny(MSBuildConstants.InvalidPathChars) < 0,
Definition\Project.cs (1)
2627ItemSpecFragment[] includeGlobFragments = includeItemspec.Fragments.Where(f => f is GlobFragment && f.TextFragment.AsSpan().IndexOfAny(s_invalidGlobChars) < 0).ToArray();
Evaluation\Expander\WellKnownFunctions.cs (1)
234returnVal = text.AsSpan().IndexOfAny(arg0.AsSpan());
Evaluation\ProjectParser.cs (1)
580int indexOfSpecialCharacter = targetName.AsSpan().IndexOfAny(XMakeElements.InvalidTargetNameCharacters);
FileMatcher.cs (1)
1573if (filespec.AsSpan().IndexOfAny(MSBuildConstants.InvalidPathChars) >= 0)
Microsoft.Build.Utilities.Core (1)
FileMatcher.cs (1)
1573if (filespec.AsSpan().IndexOfAny(MSBuildConstants.InvalidPathChars) >= 0)
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCommandLineParser.cs (1)
1921int eqlOrQuote = valueSpan.IndexOfAny(s_quoteOrEquals);
Microsoft.CodeAnalysis.Workspaces (1)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (1)
305var indexOfArguments = id.Span.IndexOfAny(argumentSeparators);
Microsoft.ML.Core (2)
Data\ReadOnlyMemoryUtils.cs (2)
71int nextSep = span.IndexOfAny(separators); 136index = memory.Span.IndexOfAny(separators);
PresentationFramework (1)
System\windows\Documents\TextEditor.cs (1)
1236endOfFirstLine = textData.AsSpan().IndexOfAny(TextPointerBase.NextLineCharacters);
System.IO.Packaging (1)
System\IO\Packaging\ContentType.cs (1)
362int lwsIndex = s.Slice(startIndex).IndexOfAny(s_linearWhiteSpaceChars);
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\MultiProxy.cs (1)
254iter = proxyString.IndexOfAny(ProxyDelimiters);
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (3)
498IndexOfAny(span, values) >= 0; 2610IndexOfAny((ReadOnlySpan<T>)span, values); 5593while ((pos = span.IndexOfAny(values)) >= 0)
System.Private.Uri (2)
System\DomainNameHelper.cs (2)
145? hostname.IndexOfAny(IriDotCharacters) 236int dotIndex = label.IndexOfAny(IriDotCharacters);
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\RegexFindOptimizations.cs (2)
655int i = primarySet.Negated ? span.IndexOfAnyExcept(chars) : span.IndexOfAny(chars); 832literal.Chars is not null ? slice.IndexOfAny(literal.Chars.AsSpan()) :
System.Web.HttpUtility (1)
System\Web\Util\HttpEncoder.cs (1)
127s.AsSpan().IndexOfAny("<\"'&");