62 references to LastIndexOf
Aspire.Dashboard (1)
Extensions\StringExtensions.cs (1)
51var lastSpaceIndex = s.LastIndexOf(' ');
illink (2)
ILLink.RoslynAnalyzer (3)
INamedTypeSymbolExtensions.cs (1)
21var dot = roSpan.LastIndexOf('.');
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
80int index = fullName.LastIndexOf('.');
src\tools\illink\src\ILLink.Shared\DataFlow\CompilerGeneratedNames.cs (1)
181return span.LastIndexOf((byte)ch);
Microsoft.AspNetCore.Components (1)
src\Http\Routing\src\Constraints\FileNameRouteConstraint.cs (1)
130var lastSlashIndex = value.LastIndexOf('/');
Microsoft.AspNetCore.Routing (1)
Constraints\FileNameRouteConstraint.cs (1)
130var lastSlashIndex = value.LastIndexOf('/');
Microsoft.AspNetCore.Server.HttpSys (2)
src\Shared\PathNormalizer\PathNormalizer.cs (2)
63var lastIndex = MemoryMarshal.CreateSpan(ref src[0], writtenLength).LastIndexOf(ByteSlash); 93var lastSlashIndex = MemoryMarshal.CreateSpan(ref src[0], writtenLength).LastIndexOf(ByteSlash);
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\PathNormalizer\PathNormalizer.cs (2)
63var lastIndex = MemoryMarshal.CreateSpan(ref src[0], writtenLength).LastIndexOf(ByteSlash); 93var lastSlashIndex = MemoryMarshal.CreateSpan(ref src[0], writtenLength).LastIndexOf(ByteSlash);
Microsoft.AspNetCore.Server.Kestrel.Core (2)
src\Shared\PathNormalizer\PathNormalizer.cs (2)
63var lastIndex = MemoryMarshal.CreateSpan(ref src[0], writtenLength).LastIndexOf(ByteSlash); 93var lastSlashIndex = MemoryMarshal.CreateSpan(ref src[0], writtenLength).LastIndexOf(ByteSlash);
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\PathNormalizer\PathNormalizer.cs (2)
63var lastIndex = MemoryMarshal.CreateSpan(ref src[0], writtenLength).LastIndexOf(ByteSlash); 93var lastSlashIndex = MemoryMarshal.CreateSpan(ref src[0], writtenLength).LastIndexOf(ByteSlash);
Microsoft.CodeAnalysis.Workspaces (2)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (2)
140offsetOfReferenceInToken += expectedDocCommentId.LastIndexOf('.') + 1; 146offsetOfReferenceInToken += idPartBeforeArguments.Span.LastIndexOf('.') + 1;
Microsoft.Extensions.DataIngestion (1)
Chunkers\ElementsChunker.cs (1)
166int newLineIndex = remainingContent.Slice(0, index).LastIndexOf('\n');
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Linux\LinuxUtilizationParserCgroupV2.cs (1)
128int colonIndex = fileContent.LastIndexOf(':');
Microsoft.Extensions.Primitives (1)
StringSegment.cs (1)
578return AsSpan().LastIndexOf(value);
Microsoft.Maui.Graphics (2)
Color.cs (2)
926 var cp = value.LastIndexOf(')'); 968 var cp = value.LastIndexOf(')');
Microsoft.ML.Transforms (1)
SvmLight\SvmLightLoader.cs (1)
253int index = memory.Span.LastIndexOf(separator);
PresentationCore (3)
MS\Internal\FontCache\FamilyCollection.cs (2)
489int indexOfSpace = faceName.LastIndexOf(' '); 500indexOfSpace = faceName.LastIndexOf(' ');
System\Windows\Input\InputScopeConverter.cs (1)
110int periodPos = spanSource.LastIndexOf('.');
PresentationFramework (1)
Microsoft\Win32\FileDialog.cs (1)
729int i = exts[ext].LastIndexOf('.');
System.ComponentModel.TypeConverter (1)
RegexGenerator.g.cs (1)
308(charloop_ending_pos = inputSpan.Slice(charloop_starting_pos, charloop_ending_pos - charloop_starting_pos).LastIndexOf(',')) < 0)
System.Console (3)
System\ConsolePal.Unix.cs (2)
524bracketPos = readBytes.Slice(0, semiPos).LastIndexOf((byte)'['); 525escPos = readBytes.Slice(0, bracketPos).LastIndexOf(Esc);
System\IO\CachedConsoleStream.cs (1)
51int lastNewLine = charBuffer.LastIndexOf('\n');
System.Data.Common (1)
RegexGenerator.g.cs (1)
308(charloop_ending_pos = inputSpan.Slice(charloop_starting_pos, charloop_ending_pos - charloop_starting_pos).LastIndexOf(',')) < 0)
System.Diagnostics.Process (1)
System\Diagnostics\Process.Linux.cs (1)
348int nameStart = arg.LastIndexOf((byte)'/') + 1;
System.Net.Primitives (6)
System\Net\CookieContainer.cs (2)
685int lastDot = host.LastIndexOf('.'); 688int dot = host[..lastDot].LastIndexOf('.');
System\Net\IPEndPoint.cs (2)
105int lastColonPos = s.LastIndexOf(TChar.CreateTruncating(':')); 115else if (s.Slice(0, lastColonPos).LastIndexOf(TChar.CreateTruncating(':')) == -1)
System\Net\IPNetwork.cs (2)
181int separatorIndex = s.LastIndexOf('/'); 209int separatorIndex = utf8Text.LastIndexOf((byte)'/');
System.Net.Security (1)
System\Security\Authentication\ExtendedProtection\ServiceNameCollection.cs (1)
206int colonIndex = hostAndPort.LastIndexOf(':'); // Allow IPv6 addresses.
System.Net.WebHeaderCollection (1)
System\Net\HeaderInfoTable.cs (1)
65int semiPos = singleValue.LastIndexOf(';');
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
2062=> UnsafeArrayAsSpan<T>(array, adjustedIndex, length).LastIndexOf(Unsafe.As<byte, T>(ref value.GetRawData()));
src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (2)
244path.LastIndexOf(PathInternal.DirectorySeparatorChar) : 269int lastPeriod = fileName.LastIndexOf('.');
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (1)
726LastIndexOf((ReadOnlySpan<T>)span, value);
src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\FrameworkName.cs (1)
146if (separatorIndex < 0 || separatorIndex != component.LastIndexOf(KeyValueSeparator))
src\libraries\System.Private.CoreLib\src\System\SearchValues\Any1CharPackedSearchValues.cs (1)
36span.LastIndexOf(_e0);
src\libraries\System.Private.CoreLib\src\System\Type.Helpers.cs (1)
535name = name.Slice(name.LastIndexOf('+') + 1);
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (2)
80int index = fullName.LastIndexOf('.'); 246if (length > 1 && input[0] == '.' && input.Slice(0, length).LastIndexOf('.') == 0)
System.Private.DataContractSerialization (1)
RegexGenerator.g.cs (1)
308(charloop_ending_pos = inputSpan.Slice(charloop_starting_pos, charloop_ending_pos - charloop_starting_pos).LastIndexOf(',')) < 0)
System.Private.Windows.Core (4)
Windows.Win32.ITypeLib.g.cs (2)
332 if (szNameBuf != null && szNameBuf.LastIndexOf('\0') == -1) throw new ArgumentException("Required null terminator missing.", "szNameBuf"); 384 if (szNameBuf != null && szNameBuf.LastIndexOf('\0') == -1) throw new ArgumentException("Required null terminator missing.", "szNameBuf");
Windows.Win32.System_Com_ITypeLib_Extensions.g.cs (2)
66 if (szNameBuf != null && szNameBuf.LastIndexOf('\0') == -1) throw new ArgumentException("Required null terminator missing.", "szNameBuf"); 82 if (szNameBuf != null && szNameBuf.LastIndexOf('\0') == -1) throw new ArgumentException("Required null terminator missing.", "szNameBuf");
System.Private.Xml (1)
RegexGenerator.g.cs (1)
308(charloop_ending_pos = inputSpan.Slice(charloop_starting_pos, charloop_ending_pos - charloop_starting_pos).LastIndexOf(',')) < 0)
System.Reflection.Metadata (1)
System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
80int index = fullName.LastIndexOf('.');
System.Text.Json (2)
RegexGenerator.g.cs (1)
308(charloop_ending_pos = inputSpan.Slice(charloop_starting_pos, charloop_ending_pos - charloop_starting_pos).LastIndexOf(',')) < 0)
System\Text\Json\Reader\JsonReaderHelper.cs (1)
21int lastLineFeedIndex = data.LastIndexOf(JsonConstants.LineFeed);
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexFindOptimizations.cs (1)
477int i = textSpan.Slice(0, pos).LastIndexOf(FixedDistanceLiteral.Char);
System.Windows.Forms.Primitives (1)
Windows.Win32.PInvoke.USER32.dll.g.cs (1)
775 if (lpchText != null && lpchText.LastIndexOf('\0') == -1) throw new ArgumentException("Required null terminator missing.", "lpchText");