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