39 references to IndexOfAny
Microsoft.Build (2)
BuildCheck\Checks\ExecCliBuildCheck.cs (1)
74var nextSeparatorIndex = commandSpan.Slice(start, commandSpan.Length - start).IndexOfAny(s_knownCommandSeparators);
Evaluation\Expander\WellKnownFunctions.cs (1)
241returnVal = text.AsSpan().IndexOfAny(arg0.AsSpan());
Microsoft.Build.Tasks.CodeAnalysis (2)
src\Compilers\Core\MSBuildTask\Csc.cs (2)
402if (trimmedAlias.AsSpan().IndexOfAny([' ', ';', '"', '=']) != -1) 433var index = itemSpec.AsSpan().IndexOfAny(['"', '=']);
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
src\Compilers\Core\MSBuildTask\Csc.cs (2)
402if (trimmedAlias.AsSpan().IndexOfAny([' ', ';', '"', '=']) != -1) 433var index = itemSpec.AsSpan().IndexOfAny(['"', '=']);
Microsoft.Build.Tasks.Core (2)
FileMatcher.cs (1)
1600if (filespec.AsSpan().IndexOfAny(MSBuildConstants.InvalidPathChars) >= 0)
Unzip.cs (1)
348else if (pattern.AsSpan().IndexOfAny(FileUtilities.InvalidPathChars) >= 0)
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)
1230endOfFirstLine = textData.AsSpan().IndexOfAny(TextPointerBase.NextLineCharacters);
System.Console (1)
System\TermInfo.cs (1)
164int printfEnd = format.AsSpan(pos).IndexOfAny("doxXs"); // find the end of the printf format string
System.IO.Packaging (1)
System\IO\Packaging\ContentType.cs (1)
362int lwsIndex = s.Slice(startIndex).IndexOfAny(s_linearWhiteSpaceChars);
System.Memory (3)
System\Buffers\SequenceReader.Search.cs (3)
333: remaining.IndexOfAny(delimiters); 380: remaining.IndexOfAny(delimiters); 559int index = remaining.IndexOfAny(delimiters);
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\MultiProxy.cs (1)
254iter = proxyString.IndexOfAny(ProxyDelimiters);
System.Private.CoreLib (14)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (2)
5694int wsIndex = target.AsSpan(targetPosition).IndexOfAny("\u0020\u00A0\u202F"); 5738wsIndex = target.AsSpan(targetPosition).IndexOfAny("\u0020\u00A0\u202F");
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (1)
429iNextDot = unicode.Slice(iAfterLastDot).IndexOfAny(DotSeparators);
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemName.cs (2)
419int i = span.IndexOfAny(charsToEscape); 429i = span.IndexOfAny(charsToEscape);
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (4)
502IndexOfAny(span, values) >= 0; 2639IndexOfAny((ReadOnlySpan<T>)span, values); 5645while ((pos = span.IndexOfAny(values)) >= 0) 5979separatorIndex = _source.Slice(_startNext).IndexOfAny(_separatorBuffer);
src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (1)
331while ((pos = span.IndexOfAny(EscapeChars)) >= 0)
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (2)
1626int idxOfFirstNewlineChar = this.AsSpan().IndexOfAny(SearchValuesStorage.NewLineCharsExceptLineFeed); 1641int idx = remaining.IndexOfAny(SearchValuesStorage.NewLineCharsExceptLineFeed);
src\libraries\System.Private.CoreLib\src\System\String.Searching.cs (2)
186return new ReadOnlySpan<char>(ref _firstChar, Length).IndexOfAny(anyOf); 211int result = new ReadOnlySpan<char>(ref Unsafe.Add(ref _firstChar, startIndex), count).IndexOfAny(anyOf);
System.Private.Uri (2)
System\DomainNameHelper.cs (2)
145? hostname.IndexOfAny(IriDotCharacters) 241int dotIndex = label.IndexOfAny(IriDotCharacters);
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\RegexFindOptimizations.cs (3)
655int i = primarySet.Negated ? span.IndexOfAnyExcept(chars) : span.IndexOfAny(chars); 753int index = primarySet.Negated ? textSpanAtOffset.IndexOfAnyExcept(primarySet.Chars) : textSpanAtOffset.IndexOfAny(primarySet.Chars); 832literal.Chars is not null ? slice.IndexOfAny(literal.Chars.AsSpan()) :
System.Text.RegularExpressions.Generator (1)
src\libraries\Common\src\System\MemoryExtensionsPolyfills.cs (1)
26span.IndexOfAny(values) >= 0;
System.Web.HttpUtility (1)
System\Web\Util\HttpEncoder.cs (1)
127s.AsSpan().IndexOfAny("<\"'&");