39 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.Tasks.CodeAnalysis (2)
src\Compilers\Core\MSBuildTask\Csc.cs (2)
402
if (trimmedAlias.AsSpan().
IndexOfAny
([' ', ';', '"', '=']) != -1)
433
var index = itemSpec.AsSpan().
IndexOfAny
(['"', '=']);
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
src\Compilers\Core\MSBuildTask\Csc.cs (2)
402
if (trimmedAlias.AsSpan().
IndexOfAny
([' ', ';', '"', '=']) != -1)
433
var index = itemSpec.AsSpan().
IndexOfAny
(['"', '=']);
Microsoft.Build.Tasks.Core (2)
FileMatcher.cs (1)
1600
if (filespec.AsSpan().
IndexOfAny
(MSBuildConstants.InvalidPathChars) >= 0)
Unzip.cs (1)
348
else if (pattern.AsSpan().
IndexOfAny
(FileUtilities.InvalidPathChars) >= 0)
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)
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\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (2)
5694
int wsIndex = target.AsSpan(targetPosition).
IndexOfAny
("\u0020\u00A0\u202F");
5738
wsIndex = target.AsSpan(targetPosition).
IndexOfAny
("\u0020\u00A0\u202F");
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (1)
429
iNextDot = unicode.Slice(iAfterLastDot).
IndexOfAny
(DotSeparators);
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemName.cs (2)
419
int i = span.
IndexOfAny
(charsToEscape);
429
i = span.
IndexOfAny
(charsToEscape);
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\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (1)
331
while ((pos = span.
IndexOfAny
(EscapeChars)) >= 0)
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (2)
1626
int idxOfFirstNewlineChar = this.AsSpan().
IndexOfAny
(SearchValuesStorage.NewLineCharsExceptLineFeed);
1641
int idx = remaining.
IndexOfAny
(SearchValuesStorage.NewLineCharsExceptLineFeed);
src\libraries\System.Private.CoreLib\src\System\String.Searching.cs (2)
186
return new ReadOnlySpan<char>(ref _firstChar, Length).
IndexOfAny
(anyOf);
211
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\libraries\Common\src\System\MemoryExtensionsPolyfills.cs (1)
26
span.
IndexOfAny
(values) >= 0;
System.Web.HttpUtility (1)
System\Web\Util\HttpEncoder.cs (1)
127
s.AsSpan().
IndexOfAny
("<\"'&");