43 references to IndexOf
Microsoft.AspNetCore.Components (1)
src\Shared\UrlDecoder\UrlDecoder.cs (1)
382int position = buffer.IndexOf('%');
Microsoft.AspNetCore.Http.Abstractions (1)
src\Shared\UrlDecoder\UrlDecoder.cs (1)
382int position = buffer.IndexOf('%');
Microsoft.AspNetCore.Mvc.TagHelpers (1)
GlobbingUrlBuilder.cs (1)
308return ValidAttributeWhitespaceChars.AsSpan().IndexOf(ch) != -1;
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\HttpSys\RequestProcessing\RawUrlHelper.cs (1)
135var idx = raw.Slice(begin).IndexOf(target);
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\HttpSys\RequestProcessing\RawUrlHelper.cs (1)
135var idx = raw.Slice(begin).IndexOf(target);
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\Http1Connection.cs (1)
293Debug.Assert(startLine.IndexOf((byte)0) == -1);
src\Shared\UrlDecoder\UrlDecoder.cs (1)
382int position = buffer.IndexOf('%');
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\HttpSys\RequestProcessing\RawUrlHelper.cs (1)
135var idx = raw.Slice(begin).IndexOf(target);
src\Shared\UrlDecoder\UrlDecoder.cs (1)
382int position = buffer.IndexOf('%');
Microsoft.AspNetCore.WebUtilities (1)
src\Shared\UrlDecoder\UrlDecoder.cs (1)
382int position = buffer.IndexOf('%');
Microsoft.Build (3)
FileUtilities.cs (3)
596bool shouldAdjust = newValue.IndexOf('/') != -1 && LooksLikeUnixFilePath(RemoveQuotes(newValue), baseDirectory); 628bool shouldAdjust = newValue.IndexOf('/') != -1 && LooksLikeUnixFilePath(RemoveQuotes(newValue), baseDirectory); 634return path.IndexOf('\\') == -1 ? path : CollapseSlashes(path);
Microsoft.Build.Engine.OM.UnitTests (3)
FileUtilities.cs (3)
596bool shouldAdjust = newValue.IndexOf('/') != -1 && LooksLikeUnixFilePath(RemoveQuotes(newValue), baseDirectory); 628bool shouldAdjust = newValue.IndexOf('/') != -1 && LooksLikeUnixFilePath(RemoveQuotes(newValue), baseDirectory); 634return path.IndexOf('\\') == -1 ? path : CollapseSlashes(path);
Microsoft.Build.Tasks.Core (3)
FileUtilities.cs (3)
596bool shouldAdjust = newValue.IndexOf('/') != -1 && LooksLikeUnixFilePath(RemoveQuotes(newValue), baseDirectory); 628bool shouldAdjust = newValue.IndexOf('/') != -1 && LooksLikeUnixFilePath(RemoveQuotes(newValue), baseDirectory); 634return path.IndexOf('\\') == -1 ? path : CollapseSlashes(path);
Microsoft.Build.Utilities.Core (3)
FileUtilities.cs (3)
596bool shouldAdjust = newValue.IndexOf('/') != -1 && LooksLikeUnixFilePath(RemoveQuotes(newValue), baseDirectory); 628bool shouldAdjust = newValue.IndexOf('/') != -1 && LooksLikeUnixFilePath(RemoveQuotes(newValue), baseDirectory); 634return path.IndexOf('\\') == -1 ? path : CollapseSlashes(path);
Microsoft.ML.TorchSharp (1)
Roberta\Models\RobertaModel.cs (1)
112var questionSize = srcTokenArray.AsSpan().IndexOf(EosIndex) - 1;
MSBuild (3)
FileUtilities.cs (3)
596bool shouldAdjust = newValue.IndexOf('/') != -1 && LooksLikeUnixFilePath(RemoveQuotes(newValue), baseDirectory); 628bool shouldAdjust = newValue.IndexOf('/') != -1 && LooksLikeUnixFilePath(RemoveQuotes(newValue), baseDirectory); 634return path.IndexOf('\\') == -1 ? path : CollapseSlashes(path);
System.Console (1)
System\TermInfo.Database.cs (1)
306int i = buffer.AsSpan(pos).IndexOf((byte)'\0');
System.Data.Odbc (3)
System\Data\Odbc\OdbcHandle.cs (3)
191sqlState = new string(buffer.AsSpan(0, buffer.AsSpan().IndexOf('\0'))); 211sqlState = new string(buffer.AsSpan(0, buffer.AsSpan().IndexOf('\0'))); 217messageBuilder.Append(new string(message.AsSpan(0, message.AsSpan().IndexOf('\0'))));
System.Diagnostics.Process (1)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.IsMemberOfGroup.cs (1)
36return groups.Slice(0, rv).IndexOf(gid) >= 0;
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
858int lengthWithoutNullTerm = _buffer.AsSpan(position, nameLength).IndexOf((byte)'\0');
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (2)
1031int lineFeedIndex = buffer.IndexOf((byte)'\n'); 1182int lfIdx = valueIterator.IndexOf((byte)'\n');
System.Net.HttpListener (1)
System\Net\HttpListener.cs (1)
203int toLowerLength = destination.IndexOf(':');
System.Private.CoreLib (3)
src\libraries\Common\src\Interop\Interop.Utils.cs (2)
27result = buffer.Slice(0, buffer.IndexOf('\0')).ToString(); 37result = buffer.Slice(0, buffer.IndexOf('\0')).ToString();
src\libraries\Common\src\Interop\Unix\System.Native\Interop.IsMemberOfGroup.cs (1)
36return groups.Slice(0, rv).IndexOf(gid) >= 0;
System.Private.Windows.Core (1)
System\SpanHelpers.cs (1)
42int index = span.IndexOf('\0');
System.Security.Cryptography (2)
System\Security\Cryptography\RandomNumberGeneratorImplementation.cs (2)
68int first0Byte = data.IndexOf((byte)0); 80int next0Byte = remainder.IndexOf((byte)0);
System.Text.Json (1)
src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
162if (childMap.AsSpan().IndexOf(true) == -1)
System.Text.Json.SourceGeneration (1)
src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
162if (childMap.AsSpan().IndexOf(true) == -1)