45 references to IndexOfAny
Microsoft.Build (2)
BuildCheck\Checks\ExecCliBuildCheck.cs (1)
74
var nextSeparatorIndex = commandSpan.Slice(start, commandSpan.Length - start).
IndexOfAny
(s_knownCommandSeparators);
Evaluation\Expander\WellKnownFunctions.cs (1)
241
returnVal = text.AsSpan().
IndexOfAny
(arg0.AsSpan());
Microsoft.Build.Framework (1)
FileUtilities.cs (1)
667
int sep = path.
IndexOfAny
(Slashes);
Microsoft.Build.Tasks.CodeAnalysis (2)
src\roslyn\src\Compilers\Core\MSBuildTask\Csc.cs (2)
412
if (trimmedAlias.AsSpan().
IndexOfAny
([' ', ';', '"', '=']) != -1)
443
var index = itemSpec.AsSpan().
IndexOfAny
(['"', '=']);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Classification\Worker_Preprocesser.cs (1)
342
var firstWhitespaceIndex = contentText.
IndexOfAny
([' ', '\t']);
Microsoft.CodeAnalysis.Razor.Compiler (5)
CSharp\RequiredAttributeParser.cs (3)
185
var nameEndIndex = _span.
IndexOfAny
(s_invalidPlainAttributeNameCharacters);
235
var valueEndIndex = _span.
IndexOfAny
(s_invalidCssQuotelessValueCharacters);
311
var nameEndIndex = _span.
IndexOfAny
(s_invalidCssAttributeNameCharacters);
Language\CodeGeneration\CodeWriterExtensions.cs (1)
933
while ((index = literal.Span.
IndexOfAny
(CStyleStringLiteralEscapeChars)) >= 0)
Language\StringTokenizer.cs (1)
77
var separatorIndex = _span.
IndexOfAny
(_separators);
Microsoft.CodeAnalysis.Workspaces (1)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (1)
305
var indexOfArguments = id.Span.
IndexOfAny
(argumentSeparators);
Microsoft.Extensions.FileProviders.Physical (1)
PhysicalFilesWatcher.cs (1)
951
int separator = remaining.
IndexOfAny
(PathUtils.PathSeparators);
Microsoft.ML.Core (2)
Data\ReadOnlyMemoryUtils.cs (2)
71
int nextSep = span.
IndexOfAny
(separators);
136
index = memory.Span.
IndexOfAny
(separators);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (2)
Utils\Globbing\StaticWebAssetGlobMatcherBuilder.cs (2)
128
var variableIndex = segmentSpan.
IndexOfAny
(searchValues);
157
var nextVariableIndex = segmentSpan.Slice(variableIndex + 1).
IndexOfAny
(searchValues);
PresentationFramework (1)
System\windows\Documents\TextEditor.cs (1)
1230
endOfFirstLine = textData.AsSpan().
IndexOfAny
(TextPointerBase.NextLineCharacters);
System.Console (1)
System\TermInfo.cs (1)
164
int printfEnd = format.AsSpan(pos).
IndexOfAny
("doxXs"); // find the end of the printf format string
System.IO.Packaging (1)
System\IO\Packaging\ContentType.cs (1)
362
int lwsIndex = s.Slice(startIndex).
IndexOfAny
(s_linearWhiteSpaceChars);
System.Memory (3)
System\Buffers\SequenceReader.Search.cs (3)
333
: remaining.
IndexOfAny
(delimiters);
380
: remaining.
IndexOfAny
(delimiters);
559
int index = remaining.
IndexOfAny
(delimiters);
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\MultiProxy.cs (1)
254
iter = proxyString.
IndexOfAny
(ProxyDelimiters);
System.Private.CoreLib (14)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (2)
5698
int wsIndex = target.AsSpan(targetPosition).
IndexOfAny
("\u0020\u00A0\u202F");
5742
wsIndex = target.AsSpan(targetPosition).
IndexOfAny
("\u0020\u00A0\u202F");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (1)
429
iNextDot = unicode.Slice(iAfterLastDot).
IndexOfAny
(DotSeparators);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemName.cs (2)
419
int i = span.
IndexOfAny
(charsToEscape);
429
i = span.
IndexOfAny
(charsToEscape);
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (4)
502
IndexOfAny
(span, values) >= 0;
2639
IndexOfAny
((ReadOnlySpan<T>)span, values);
5645
while ((pos = span.
IndexOfAny
(values)) >= 0)
5979
separatorIndex = _source.Slice(_startNext).
IndexOfAny
(_separatorBuffer);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (1)
331
while ((pos = span.
IndexOfAny
(EscapeChars)) >= 0)
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (2)
1649
int idxOfFirstNewlineChar = this.AsSpan().
IndexOfAny
(SearchValuesStorage.NewLineCharsExceptLineFeed);
1664
int idx = remaining.
IndexOfAny
(SearchValuesStorage.NewLineCharsExceptLineFeed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Searching.cs (2)
191
return new ReadOnlySpan<char>(ref _firstChar, Length).
IndexOfAny
(anyOf);
216
int 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)
241
int dotIndex = label.
IndexOfAny
(IriDotCharacters);
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\RegexFindOptimizations.cs (3)
655
int i = primarySet.Negated ? span.IndexOfAnyExcept(chars) : span.
IndexOfAny
(chars);
753
int index = primarySet.Negated ? textSpanAtOffset.IndexOfAnyExcept(primarySet.Chars) : textSpanAtOffset.
IndexOfAny
(primarySet.Chars);
832
literal.Chars is not null ? slice.
IndexOfAny
(literal.Chars.AsSpan()) :
System.Text.RegularExpressions.Generator (1)
src\runtime\src\libraries\Common\src\Polyfills\MemoryExtensionsPolyfills.cs (1)
28
span.
IndexOfAny
(values) >= 0;
System.Web.HttpUtility (1)
System\Web\Util\HttpEncoder.cs (1)
128
s.AsSpan().
IndexOfAny
("<\"'&");