47 references to IndexOf
Aspire.Dashboard (2)
ConsoleLogs\AnsiParser.cs (2)
344
var endEscPosition = span.
IndexOf
("\x1B\\");
345
var endBellPosition = span.
IndexOf
("\x07");
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\PathNormalizer\PathNormalizer.cs (1)
27
var nextDotSegmentIndex = currentSrc.
IndexOf
(slashDot);
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\PathNormalizer\PathNormalizer.cs (1)
27
var nextDotSegmentIndex = currentSrc.
IndexOf
(slashDot);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\PathNormalizer\PathNormalizer.cs (1)
27
var nextDotSegmentIndex = currentSrc.
IndexOf
(slashDot);
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\PathNormalizer\PathNormalizer.cs (1)
27
var nextDotSegmentIndex = currentSrc.
IndexOf
(slashDot);
Microsoft.AspNetCore.WebUtilities (4)
FormPipeReader.cs (2)
167
var ampersand = span.
IndexOf
(andDelimiter);
197
equals = keyValuePair.
IndexOf
(equalsDelimiter);
MultipartReaderStream.cs (2)
180
var index = bufferedData.AsSpan().
IndexOf
(_boundary.BoundaryBytes);
260
var index = bufferedData.AsSpan().
IndexOf
(_boundary.BoundaryBytes);
Microsoft.CodeAnalysis.Features (3)
MetadataAsSource\AbstractMetadataAsSourceService.DocCommentFormatter.cs (3)
194
var end = span.
IndexOf
(" ".AsSpan());
221
var index = source.Span.
IndexOf
(separator);
228
index = source.Span.
IndexOf
(separator);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (6)
Linux\LinuxUtilizationParserCgroupV1.cs (1)
217
int index = memoryFile.
IndexOf
(TotalInactiveFile.AsSpan());
Linux\LinuxUtilizationParserCgroupV2.cs (5)
366
int index = memoryFile.
IndexOf
(InactiveFile.AsSpan());
530
int usageIndex = content.
IndexOf
(UsageUsec);
545
int periodsIndex = content.
IndexOf
(NrPeriods);
653
int index = quotaBuffer.
IndexOf
(quotaString.AsSpan());
720
int index = content.
IndexOf
(quotaString.AsSpan());
PresentationBuildTasks (2)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\ReflectionUtils.cs (2)
104
int versionIndex = assemblyName.
IndexOf
(Version);
114
int tokenIndex = assemblyName.
IndexOf
(PublicKeyToken);
System.Memory (1)
System\Buffers\SequenceReader.Search.cs (1)
418
int index = remaining.
IndexOf
(delimiter);
System.Private.CoreLib (11)
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (4)
965
return source.
IndexOf
(value);
977
return source.
IndexOf
(value);
1074
retVal = (fromBeginning) ? source.
IndexOf
(value) : source.LastIndexOf(value);
1088
retVal = (fromBeginning) ? source.
IndexOf
(value) : source.LastIndexOf(value);
src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.cs (1)
324
int result = ignoreCase ? IndexOfOrdinalIgnoreCase(sourceSpan, value) : sourceSpan.
IndexOf
(value);
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (3)
712
IndexOf
((ReadOnlySpan<T>)span, value);
5522
while ((pos = span.
IndexOf
(value)) >= 0)
5933
separatorIndex = _source.Slice(_startNext).
IndexOf
(_separatorBuffer);
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesFallback.cs (1)
24
: span.
IndexOf
(_value);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
2155
int index = source.
IndexOf
(separator);
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (1)
2113
int foundPos = remainingChunk.
IndexOf
(oldValue);
System.Private.Xml (4)
System\Xml\XPath\Internal\StringFunctions.cs (2)
151
int idx = s1.AsSpan().
IndexOf
(s2);
161
int idx = s1.AsSpan().
IndexOf
(s2);
System\Xml\Xsl\Runtime\XsltFunctions.cs (2)
44
int idx = s1.AsSpan().
IndexOf
(s2);
52
int idx = s1.AsSpan().
IndexOf
(s2);
System.Text.Json (2)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Comment.cs (2)
47
if (value.
IndexOf
(s_singleLineCommentDelimiter) != -1)
164
if (utf8Value.
IndexOf
(SingleLineCommentDelimiterUtf8) != -1)
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\RegexFindOptimizations.cs (2)
619
int i = textSpan.Slice(pos).
IndexOf
(LeadingPrefix.AsSpan());
710
int i = textSpan.Slice(pos + FixedDistanceLiteral.Distance).
IndexOf
(FixedDistanceLiteral.String.AsSpan());
System.Xaml (2)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\ReflectionUtils.cs (2)
104
int versionIndex = assemblyName.
IndexOf
(Version);
114
int tokenIndex = assemblyName.
IndexOf
(PublicKeyToken);
xunit.assert (4)
MemoryAsserts.cs (2)
101
if (actualMemory.Span.
IndexOf
(expectedSubMemory.Span) < 0)
179
var idx = actualSpan.
IndexOf
(expectedSpan);
SpanAsserts.cs (2)
99
if (actualSpan.
IndexOf
(expectedSubSpan) < 0)
173
var idx = actualSpan.
IndexOf
(expectedSubSpan);