30 references to IndexOfAny
Microsoft.Build.Tasks.CodeAnalysis (2)
src\Compilers\Core\MSBuildTask\Csc.cs (2)
385if (trimmedAlias.AsSpan().IndexOfAny([' ', ';', '"', '=']) != -1) 416var index = itemSpec.AsSpan().IndexOfAny(['"', '=']);
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
src\Compilers\Core\MSBuildTask\Csc.cs (2)
385if (trimmedAlias.AsSpan().IndexOfAny([' ', ';', '"', '=']) != -1) 416var index = itemSpec.AsSpan().IndexOfAny(['"', '=']);
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.Memory (3)
System\Buffers\SequenceReader.Search.cs (3)
333: remaining.IndexOfAny(delimiters); 380: remaining.IndexOfAny(delimiters); 559int index = remaining.IndexOfAny(delimiters);
System.Private.CoreLib (12)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (2)
5593int wsIndex = target.AsSpan(targetPosition).IndexOfAny("\u0020\u00A0\u202F"); 5637wsIndex = target.AsSpan(targetPosition).IndexOfAny("\u0020\u00A0\u202F");
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (1)
325iNextDot = unicode.AsSpan(iAfterLastDot).IndexOfAny(DotSeparators);
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (4)
499IndexOfAny(span, values) >= 0; 2611IndexOfAny((ReadOnlySpan<T>)span, values); 5594while ((pos = span.IndexOfAny(values)) >= 0) 5928separatorIndex = _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)
1607int idxOfFirstNewlineChar = this.AsSpan().IndexOfAny(SearchValuesStorage.NewLineCharsExceptLineFeed); 1622int idx = remaining.IndexOfAny(SearchValuesStorage.NewLineCharsExceptLineFeed);
src\libraries\System.Private.CoreLib\src\System\String.Searching.cs (2)
113return new ReadOnlySpan<char>(ref _firstChar, Length).IndexOfAny(anyOf); 138int 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) 236int 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.Web.HttpUtility (1)
System\Web\Util\HttpEncoder.cs (1)
127s.AsSpan().IndexOfAny("<\"'&");